Skip to content

Commit 6fae63f

Browse files
committed
updated github actions
1 parent 4505cb1 commit 6fae63f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,21 @@ jobs:
1818
- '^1.18'
1919
- '^1.19'
2020
- '^1.20'
21+
- '^1.21'
22+
- '^1.22'
2123
steps:
2224
- name: Check out code into the Go module directory
23-
uses: actions/checkout@v3
24-
- uses: actions/setup-go@v3
25+
uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
2527
with:
2628
go-version: ${{ matrix.go }}
2729
cache: true
28-
- name: Declare some variables
29-
id: vars
30-
run: |
31-
echo "::set-output name=coverage_txt::${RUNNER_TEMP}/coverage.txt"
3230
- name: Test Coverage (pkg)
33-
run: go test ./... -race -coverprofile=${{ steps.vars.outputs.coverage_txt }}
31+
run: go test ./... -race -coverprofile="coverage.txt"
3432
- name: Upload coverage
35-
if: ${{ matrix.go == '^1.20' }}
36-
uses: codecov/codecov-action@v2
33+
if: ${{ matrix.go == '^1.22' }}
34+
uses: codecov/codecov-action@v4
3735
with:
38-
files: ${{ steps.vars.outputs.coverage_txt }}
36+
file: "coverage.txt"
37+
token: ${{ secrets.CODECOV_TOKEN }}
3938

0 commit comments

Comments
 (0)