-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from libsql/golang_ci_tests
Add Go bindings tests to CI
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Go bindings tests CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
merge_group: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/[email protected] | ||
|
||
- name: get TCL | ||
run: sudo apt-get install -y tcl8.6-dev | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v2 | ||
|
||
- name: Install Wasmpack | ||
uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
|
||
- name: configure | ||
run: ./configure | ||
|
||
- name: Build | ||
run: make | ||
|
||
- name: Build crates | ||
run: cd crates && cargo build | ||
|
||
- name: Run Go bindings tests | ||
run: cd crates/bindings/go && LD_LIBRARY_PATH=/home/runner/work/libsql/libsql/crates/target/debug go test |