Skip to content

Commit

Permalink
upgrade github actions (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
OldPanda authored Aug 10, 2024
1 parent 2db16f9 commit 5733c2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
matrix:
go: [ '1.22', '1.21', '1.20', '1.19', '1.18', '1.17', '1.16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "Setup Golang"
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
# https://github.com/actions/cache/blob/master/examples.md#go---modules
- name: "Cache Go Modules"
id: cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -31,7 +31,7 @@ jobs:
- name: "Test"
run: go test -v -race -coverpkg=./... -coverprofile=coverage.txt ./...
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Setup Golang"
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.22

- name: Run linters
uses: wearerequired/lint-action@v1
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
gofmt: true
Expand Down

0 comments on commit 5733c2a

Please sign in to comment.