-
Notifications
You must be signed in to change notification settings - Fork 1.1k
81 lines (76 loc) · 2.31 KB
/
Copy pathconformance.yml
File metadata and controls
81 lines (76 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Conformance tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_INCREMENTAL: "0"
CARGO_NET_RETRY: 10
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
javascript:
name: JavaScript conformance tests
timeout-minutes: 30
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: useblacksmith/setup-node@v5
with:
node-version: 20
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: conformance-js-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
conformance-js-cargo-
- name: Install JS binding dependencies
working-directory: bindings/javascript
run: yarn install
- name: Build JS native module
working-directory: bindings/javascript
run: yarn build:native
- name: Install test dependencies
working-directory: testing/conformance/javascript
run: npm install
- name: Run conformance tests
working-directory: testing/conformance/javascript
run: npm run test:turso
sqlite-tcl:
name: SQLite TCL conformance tests
timeout-minutes: 30
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: conformance-sqlite-tcl-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
conformance-sqlite-tcl-cargo-
- name: Install TCL dev headers
run: sudo apt-get update && sudo apt-get install -y tcl-dev tcl
- name: Build libturso_tcl
run: make -C bindings/tcl build
- name: Run SQLite TCL conformance tests
run: tclsh testing/conformance/sqlite3/all.test