Skip to content

Commit 1b8fa16

Browse files
committed
add workflows
1 parent 93fe5dd commit 1b8fa16

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/go.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ["main", "devel"]
5+
paths:
6+
- '**.go'
7+
- '**.yml'
8+
pull_request:
9+
branches: ["main"]
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
go-version: ['stable', 'oldstable', '1.22', '1.21', '1.20']
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
- uses: actions/checkout@v4
23+
- name: test
24+
env:
25+
GOTOOLCHAIN: local
26+
run: go test -v ./...

0 commit comments

Comments
 (0)