Skip to content

Commit e642557

Browse files
MagicalTuxclaude
andcommitted
add GitHub Actions workflow for tests
Run tests on Go 1.23, 1.24, and 1.25 on push and PR to master. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f53c5fc commit e642557

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: ['1.23', '1.24', '1.25']
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go ${{ matrix.go-version }}
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: ${{ matrix.go-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y libportaudio2 libopus-dev portaudio19-dev
28+
29+
- name: Build
30+
run: go build -v ./...
31+
32+
- name: Test
33+
run: go test -v ./...

0 commit comments

Comments
 (0)