mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 03:54:21 +01:00
44 lines
788 B
YAML
44 lines
788 B
YAML
name: Go Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
working-directory: bindings/go
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ${{ env.working-directory }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust(stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Set up go
|
|
uses: useblacksmith/setup-go@v6
|
|
with:
|
|
go-version: "1.23"
|
|
|
|
- name: build Go bindings library
|
|
run: cargo build --package limbo-go
|
|
|
|
- name: run Go tests
|
|
env:
|
|
LD_LIBRARY_PATH: ${{ github.workspace }}/target/debug:$LD_LIBRARY_PATH
|
|
run: go test
|
|
|