Skip to content

Commit

Permalink
updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Apr 14, 2024
1 parent 4505cb1 commit 7e98730
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
- '^1.18'
- '^1.19'
- '^1.20'
- '^1.21'
- '^1.22'
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- uses: actions/setup-go@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
Expand All @@ -32,8 +34,8 @@ jobs:
- name: Test Coverage (pkg)
run: go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }}
- name: Upload coverage
if: ${{ matrix.go == '^1.20' }}
uses: codecov/codecov-action@v2
if: ${{ matrix.go == '^1.22' }}
uses: codecov/codecov-action@v4
with:
files: ${{ steps.vars.outputs.coverage_txt }}

0 comments on commit 7e98730

Please sign in to comment.