Skip to content

Commit 6df2ece

Browse files
committed
all: add .github/workflows
1 parent b05260c commit 6df2ece

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, macos-latest, windows-latest]
10+
go: ['1.22.x', '1.23.x', '1.24.x']
11+
name: Test with Go ${{ matrix.go }} on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
defaults:
14+
run:
15+
shell: bash
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: ${{ matrix.go }}
24+
25+
- name: Test
26+
run: |
27+
go test -v ./...

0 commit comments

Comments
 (0)