Skip to content

Commit 60057ea

Browse files
committed
testing faster tests
1 parent 7a17256 commit 60057ea

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/go.yml

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will build a golang project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3-
41
name: Go
52

63
on:
@@ -14,15 +11,23 @@ jobs:
1411
build:
1512
runs-on: ubuntu-latest
1613
steps:
17-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.22'
1820

19-
- name: Set up Go
20-
uses: actions/setup-go@v4
21-
with:
22-
go-version: '1.22'
21+
- name: Cache Go modules
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: |
27+
${{ runner.os }}-go-
2328
24-
- name: Build
25-
run: go build -v ./...
29+
- name: Build
30+
run: go build -v ./...
2631

27-
- name: Test
28-
run: go test -v ./...
32+
- name: Test
33+
run: go test -v -p 2 ./...

0 commit comments

Comments
 (0)