Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
actions/setup-go@v3
actions/checkout@v3
actions/cache@v3
codecov/codecov-action@v3
goreleaser/goreleaser-action@v3
  • Loading branch information
im-kulikov committed Nov 1, 2022
1 parent 7c7375f commit 05f935d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
steps:

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -35,7 +35,7 @@ jobs:
uses: golangci/golangci-lint-action@v3

- name: Cache go mod
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
Expand All @@ -46,14 +46,14 @@ jobs:
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
file: ./coverage.txt
fail_ci_if_error: true #optional (default = false)

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
Expand Down

0 comments on commit 05f935d

Please sign in to comment.