Skip to content

Commit 415575a

Browse files
Update workflows
1 parent 871f150 commit 415575a

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,29 @@ jobs:
2323
args: --timeout=5m
2424

2525
test:
26+
name: Test
2627
runs-on: ubuntu-latest
2728
steps:
28-
- name: install Go
29-
uses: actions/setup-go@v2
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Install Go
33+
uses: actions/setup-go@v5
3034
with:
3135
go-version: 1.25.x
32-
- name: checkout code
33-
uses: actions/checkout@v2
34-
- uses: actions/cache@v2
35-
with:
36-
path: ~/go/pkg/mod
37-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
38-
restore-keys: |
39-
${{ runner.os }}-go-
40-
- name: golang tests
36+
37+
- name: Golang tests
4138
env:
4239
GO111MODULE: on
4340
run: |
4441
go mod download
45-
go test ./...
42+
go test -p 8 ./...
43+
44+
- name: Update coverage report
45+
uses: ncruces/[email protected]
46+
with:
47+
report: 'true'
48+
chart: 'true'
49+
amend: 'true'
50+
reuse-go: 'true'
51+
continue-on-error: true

0 commit comments

Comments
 (0)