Skip to content

Commit 3531356

Browse files
ci: add a minimal CI config to run Go tests
1 parent eb100f7 commit 3531356

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
unit:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ "ubuntu", "windows", "macos" ]
9+
go: [ "1.24.x", "1.25.x" ]
10+
runs-on: ${{ matrix.os }}-latest
11+
name: Tests (${{ matrix.os}}, Go ${{ matrix.go }})
12+
timeout-minutes: 10
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-go@v6
16+
with:
17+
go-version: ${{ matrix.go }}
18+
- run: go version
19+
- name: run tests
20+
run: go test -v -shuffle on ./...

0 commit comments

Comments
 (0)