Skip to content

Commit 98afabd

Browse files
committed
ci: run tests on multiple go versions, oses and archs
1 parent a3012c1 commit 98afabd

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,24 @@ on:
1313

1414
jobs:
1515
unit:
16-
name: Unit Tests
17-
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
go-version:
19+
- "1.23"
20+
- "1.24"
21+
os:
22+
- macos
23+
- ubuntu
24+
- windows
25+
goarch:
26+
- 386
27+
- amd64
28+
exclude:
29+
- os: macos
30+
goarch: 386
31+
32+
name: Unit Tests (${{ matrix.os }}/go-${{ matrix.go-version }}/${{ matrix.goarch }})
33+
runs-on: ${{ matrix.os }}-latest
1834

1935
steps:
2036
- uses: actions/checkout@v4
@@ -23,7 +39,7 @@ jobs:
2339

2440
- uses: actions/setup-go@v5
2541
with:
26-
go-version-file: go.mod
42+
go-version: ${{ matrix.go-version }}
2743

2844
- name: Install dependencies
2945
run: make get-deps

0 commit comments

Comments
 (0)