Skip to content

Commit

Permalink
Merge pull request #263 from libsql/golang_ci_tests
Browse files Browse the repository at this point in the history
Add Go bindings tests to CI
  • Loading branch information
haaawk authored Aug 10, 2023
2 parents 301d81e + 2aa11c4 commit 0b22760
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/golang-bindings.yml
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

0 comments on commit 0b22760

Please sign in to comment.