Skip to content

Commit bdd7255

Browse files
committed
chore: add ci testing for golang
1 parent 677f426 commit bdd7255

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Go bindings
2+
3+
on:
4+
push:
5+
branches:
6+
- kw/add-go-tests
7+
pull_request:
8+
branches:
9+
- kw/add-go-tests
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Rust
21+
uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Run compile script
24+
run: |
25+
chmod +x ./scripts/compile.sh
26+
./scripts/compile.sh
27+
28+
- name: Checkout repository again for Go
29+
uses: actions/checkout@v3
30+
31+
- name: Set up Go
32+
uses: actions/setup-go@v4
33+
with:
34+
go-version: '1.20'
35+
36+
- name: Run Go tests
37+
run: go test ./...
38+
working-directory: bindings/golang

0 commit comments

Comments
 (0)