Skip to content

Commit 0a26463

Browse files
committed
moar CI
1 parent 59bac92 commit 0a26463

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

Diff for: .github/workflows/main.yml

+27-4
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,45 @@ on:
33
- push
44
- pull_request
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: false
9+
610
jobs:
7-
tests:
11+
test:
812
strategy:
913
matrix:
1014
go: ["1.24"]
1115
os: [ubuntu, macos]
1216
runs-on: ${{ matrix.os }}-latest
13-
name: go${{ matrix.go }}-${{ matrix.os }}
17+
name: test (go${{ matrix.go }}-${{ matrix.os }})
1418
steps:
1519
- uses: actions/checkout@v4
1620
- uses: actions/setup-go@v5
1721
with:
1822
go-version: ${{ matrix.go }}
1923
- run: go mod download
20-
- run: go build
24+
- run: go build -v
25+
- run: make test
26+
27+
test-race:
28+
strategy:
29+
matrix:
30+
go: ["1.24"]
31+
os: [ubuntu, macos]
32+
runs-on: ${{ matrix.os }}-latest
33+
name: test-race (go${{ matrix.go }}-${{ matrix.os }})
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-go@v5
37+
with:
38+
go-version: ${{ matrix.go }}
39+
- run: make test-race
40+
41+
lint:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
2145
- uses: golangci/golangci-lint-action@v7
2246
with:
2347
version: v2.0.2
24-
- run: make test test-race

0 commit comments

Comments
 (0)