Skip to content

Commit

Permalink
GitHub Actions: upgrade actions, setup CODECOV_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen committed Mar 28, 2024
1 parent 0750583 commit 7144e0c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ jobs:
name: Test Go ${{ matrix.go }}
runs-on: ubuntu-latest
env:
go_latest: '1.20'
go_latest: 'stable'
strategy:
matrix:
go:
- '1.20'
- 'stable'
- 'oldstable'
- '1.19'
- '1.18'
- '1.17'
Expand All @@ -23,10 +24,10 @@ jobs:
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

Expand All @@ -36,4 +37,6 @@ jobs:
# https://app.codecov.io/github.com/dolmen-go/jsonptr
- name: Upload coverage to Codecov
if: matrix.go == env.go_latest
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 7144e0c

Please sign in to comment.