Skip to content

Commit

Permalink
Add a github workflow to test crsqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
avinassh committed Feb 15, 2024
1 parent 73ffb24 commit 7972794
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/extensions-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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@v1
- 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@v1
- 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

0 comments on commit 7972794

Please sign in to comment.