Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Merge 'Add merge-pr script and makefile command from tursodb repo' fr… #36

Merge 'Add merge-pr script and makefile command from tursodb repo' fr…

Merge 'Add merge-pr script and makefile command from tursodb repo' fr… #36

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
jobs:
test:
name: Go tests on ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: linux_amd64
os: ubuntu-latest
lib_relpath: libs/linux_amd64/libturso_go.so
- name: macos_amd64
os: macos-13
lib_relpath: libs/darwin_amd64/libturso_go.dylib
- name: macos_arm64
os: macos-14
lib_relpath: libs/darwin_arm64/libturso_go.dylib
- name: windows_amd64
os: windows-latest
lib_relpath: libs/windows_amd64/turso_go.dll
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Probe platform library
id: probe
shell: bash
run: |
set -euo pipefail
p="${{ matrix.lib_relpath }}"
echo "Looking for ${p}"
if [ -f "${p}" ]; then
echo "present=true" >> "$GITHUB_OUTPUT"
else
echo "present=false" >> "$GITHUB_OUTPUT"
echo "Library not found; this leg will be skipped."
fi
- uses: actions/setup-go@v5
if: steps.probe.outputs.present == 'true'
with:
go-version: "1.23.x"
check-latest: true
- name: Run Go tests
if: steps.probe.outputs.present == 'true'
run: go test -v ./...
- name: Skipped (no platform lib)
if: steps.probe.outputs.present != 'true'
run: echo "No ${{ matrix.lib_relpath }} present; skipping."