diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e8c0acf..c1eddb0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,7 +29,7 @@ jobs: docker-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build the Docker image run: docker build . --file Dockerfile goreleaser: @@ -38,18 +38,18 @@ jobs: - name: Checkout uses: actions/checkout@master - 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 + uses: actions/cache@v4 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 + uses: goreleaser/goreleaser-action@v5 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 + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: v1.31 github-token: ${{ secrets.GITHUB_TOKEN }} @@ -76,9 +76,9 @@ jobs: #- 1.14.7 - 1.15.2 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Run tests on Windows @@ -95,12 +95,12 @@ jobs: OS: macos-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }} @@ -116,7 +116,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@v1 + uses: codecov/codecov-action@v4 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt @@ -136,12 +136,12 @@ jobs: OS: ubuntu-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }} @@ -157,7 +157,7 @@ jobs: - name: Run tests on Unix-like operating systems run: make unittest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1b44c43..24e534e 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 + - uses: actions/checkout@v4 - run: | git fetch --prune --unshallow --tags - uses: snyk/release-notes-preview@v1.6.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01e2a80..ba34f85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,19 +18,19 @@ jobs: - 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.1 - name: Cache Go modules if: steps.semantic.outputs.new-release-published == 'true' - uses: actions/cache@v2 + uses: actions/cache@v4 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 + uses: goreleaser/goreleaser-action@v5 with: version: latest args: release --rm-dist