0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-08 11:49:02 +00:00
libsql/.github/workflows/extensions-test.yml
Piotr Jastrzębski 0c730c439a Propagate schema migration errors correctly (#1403)
* Update hecrj/setup-rust-action to v2

Signed-off-by: Piotr Jastrzebski <piotr@chiselstrike.com>

* Update rust-toolchain.toml to 1.78

Signed-off-by: Piotr Jastrzebski <piotr@chiselstrike.com>

* Propagate schema migration errors correctly

Signed-off-by: Piotr Jastrzebski <piotr@chiselstrike.com>

---------

Signed-off-by: Piotr Jastrzebski <piotr@chiselstrike.com>
2024-05-21 11:53:42 +00:00

81 lines
1.9 KiB
YAML

name: Extensions Tests
on:
push:
branches: [ "main" ]
pull_request:
merge_group:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
PROTOC_VERSION: 3.23.4
jobs:
c-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: libsql-sqlite3
name: CR SQLite C Tests
steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: build libsql
run: |
./configure
make libsql
- name: build
run: |
cd ext/crr
make loadable
- name: test
run: |
cd ext/crr
make test
rs-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: libsql-sqlite3
name: CR SQLite Rust Tests
steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: build libsql
run: |
./configure
make libsql
- name: test
run: |
cd ext/crr/rs/core
cargo test --features=loadable_extension
extensions-tests:
runs-on: ubuntu-latest
name: Extensions Tests
steps:
- uses: hecrj/setup-rust-action@v2
- name: Checkout repository
uses: actions/checkout@v3
- name: build libsql and ffi bindings
run: |
cargo xtask build-bundled
- name: download extensions
run: |
cd libsql-sqlite3/test/rust_suite
export VSS_VERSION="v0.1.2"
wget https://github.com/asg017/sqlite-vss/releases/download/$VSS_VERSION/sqlite-vss-$VSS_VERSION-loadable-linux-x86_64.tar.gz
tar -xvf sqlite-vss-$VSS_VERSION-loadable-linux-x86_64.tar.gz -C src
- name: test
run: |
cd libsql-sqlite3/test/rust_suite
# Only execute extensions tests
cargo test --features=extensions extensions