Skip to content

Commit 45e4e8b

Browse files
authored
ci: Add GitHub Actions workflow for unit and integration tests (#6)
Assisted-by: Claude Code (Opus 4.6) Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
1 parent db6feda commit 45e4e8b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
unit-tests:
14+
name: Unit Tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: stable
21+
- name: Build
22+
run: go build ./...
23+
- name: Vet
24+
run: go vet ./...
25+
- name: Unit tests
26+
run: go test -v -race ./...
27+
28+
integration-tests:
29+
name: Integration Tests
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version: stable
36+
- uses: dtolnay/rust-toolchain@stable
37+
- name: Build Rust test server
38+
run: cargo build --manifest-path tests-integration/Cargo.toml
39+
- name: Run integration tests
40+
run: go test -v ./tests-integration/...

0 commit comments

Comments
 (0)