Skip to content

Commit 9ac99cc

Browse files
committed
Improve github test workflow
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
1 parent 37565aa commit 9ac99cc

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,23 @@ on:
77
pull_request:
88
jobs:
99
test:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Install Go
13-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v5
1417
with:
15-
go-version: "1.21"
18+
go-version: "1.23"
1619

1720
- name: Checkout code
18-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
1922

2023
- name: Test
2124
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./...
2225

2326
- name: Upload coverage reports to Codecov
24-
uses: codecov/codecov-action@v3
25-
env:
26-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
27+
uses: codecov/codecov-action@v5
28+
with:
29+
use_oidc: true

0 commit comments

Comments
 (0)