-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
43 lines (41 loc) · 1.24 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: specl
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: specl
- run: cargo fmt --check
- run: cargo clippy --workspace -- -D warnings -A clippy::too_many_arguments
- run: cargo test --workspace --exclude specl-tla
- run: cargo test -p specl-tla --test translate_corpus -- --skip benchmark_tla_files_translate
- name: Lint showcase examples
run: |
for f in examples/showcase/*.specl; do
cargo run -q --bin specl -- fmt "$f" --lint || exit 1
done
soundness:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
defaults:
run:
working-directory: specl
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: specl
- name: Proptest soundness (512 cases)
run: PROPTEST_CASES=512 cargo test -p specl-soundness -- --test-threads=1
timeout-minutes: 60