diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7c71427..8d281a4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,27 +29,27 @@ jobs: docker-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - name: Build the Docker image run: docker build . --file Dockerfile goreleaser: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.7 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.15.2 - name: Cache Go modules - uses: actions/cache@v2.1.6 + uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - name: Run GoReleaser (Dry Run) - uses: goreleaser/goreleaser-action@v2.6.1 + uses: goreleaser/goreleaser-action@v6.0.0 with: version: latest args: release --rm-dist --snapshot --skip-publish @@ -58,9 +58,9 @@ jobs: golangci-lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - name: golangci-lint - uses: golangci/golangci-lint-action@v2.5.2 + uses: golangci/golangci-lint-action@v6.0.1 with: version: v1.28 github-token: ${{ secrets.GITHUB_TOKEN }} @@ -77,9 +77,9 @@ jobs: #- 1.14.7 - 1.15.2 steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Run tests on Windows @@ -96,12 +96,12 @@ jobs: OS: macos-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.6 + - uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }} @@ -117,7 +117,7 @@ jobs: git --no-pager diff go.mod go.sum git --no-pager diff --quiet go.mod go.sum - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v4.5.0 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt @@ -138,12 +138,12 @@ jobs: OS: ubuntu-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.6 + - uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }} @@ -159,7 +159,7 @@ jobs: - name: Run tests on Unix-like operating systems run: make unittest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v4.5.0 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index edceddc..2a559e7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,7 +11,7 @@ jobs: name: Release-Notes Preview runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v4.1.7 - run: | git fetch --prune --unshallow --tags - uses: snyk/release-notes-preview@v1.6.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9cf502..52b9020 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,26 +11,26 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.7 - name: Unshallow run: git fetch --prune --unshallow - name: Run Semantic Release id: semantic - uses: codfish/semantic-release-action@v1 + uses: codfish/semantic-release-action@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Go if: steps.semantic.outputs.new-release-published == 'true' - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: 1.15.2 - name: Cache Go modules if: steps.semantic.outputs.new-release-published == 'true' - uses: actions/cache@v2.1.6 + uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -39,7 +39,7 @@ jobs: - name: Run GoReleaser if: steps.semantic.outputs.new-release-published == 'true' - uses: goreleaser/goreleaser-action@v2.6.1 + uses: goreleaser/goreleaser-action@v6.0.0 with: version: latest args: release --rm-dist diff --git a/go.mod b/go.mod index ef67054..e082eb3 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,35 @@ module moul.io/generate-fake-data -go 1.13 +go 1.22 + +toolchain go1.22.4 require ( github.com/brianvoe/gofakeit/v5 v5.11.2 + github.com/brianvoe/gofakeit/v7 v7.0.4 github.com/peterbourgon/ff/v3 v3.0.0 go.uber.org/goleak v1.1.10 moul.io/srand v1.6.1 ) + +require ( + github.com/BurntSushi/toml v0.3.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/kr/pretty v0.1.0 // indirect + github.com/kr/pty v1.1.1 // indirect + github.com/kr/text v0.1.0 // indirect + github.com/pelletier/go-toml v1.6.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/objx v0.1.0 // indirect + github.com/stretchr/testify v1.4.0 // indirect + golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 // indirect + golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect + golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect + golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect + golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a // indirect + golang.org/x/text v0.3.0 // indirect + golang.org/x/tools v0.0.0-20191108193012-7d206e10da11 // indirect + golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect + gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect + gopkg.in/yaml.v2 v2.2.4 // indirect +) diff --git a/go.sum b/go.sum index c0b765a..5c9cbce 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,7 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/brianvoe/gofakeit/v5 v5.11.2 h1:Ny5Nsf4z2023ZvYP8ujW8p5B1t5sxhdFaQ/0IYXbeSA= github.com/brianvoe/gofakeit/v5 v5.11.2/go.mod h1:/ZENnKqX+XrN8SORLe/fu5lZDIo1tuPncWuRD+eyhSI= +github.com/brianvoe/gofakeit/v7 v7.0.4/go.mod h1:QXuPeBw164PJCzCUZVmgpgHJ3Llj49jSLVkKPMtxtxA= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=