-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (63 loc) · 2.07 KB
/
Copy pathci.yml
File metadata and controls
82 lines (63 loc) · 2.07 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
82
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Toolchain is pinned via rust-toolchain.toml; keep in sync with the matrix below
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-06-10
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --tests --benches --all-features
wasm:
name: Check (wasm32-unknown-unknown)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Toolchain is pinned via rust-toolchain.toml; keep in sync
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-06-10
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Check wasm target
run: cargo check --target wasm32-unknown-unknown -p openpql-runner -p openpql-pql-parser -p openpql-range-parser -p openpql-prelude --features openpql-prelude/serde
- name: Install wasm-pack
uses: taiki-e/install-action@v2
with:
tool: wasm-pack
- name: Run wasm runtime test
run: wasm-pack test --node openpql-runner --test wasm
test:
name: Test (${{ matrix.toolchain }})
runs-on: ubuntu-latest
strategy:
matrix:
# nightly pin: keep in sync with rust-toolchain.toml
toolchain: [stable, nightly-2026-06-10]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- name: Run tests
run: cargo +${{ matrix.toolchain }} nextest run --all-features
- name: Run doctests
run: cargo +${{ matrix.toolchain }} test --doc --all-features