-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (74 loc) · 2.16 KB
/
Copy pathspeccursor.yml
File metadata and controls
90 lines (74 loc) · 2.16 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
83
84
85
86
87
88
89
90
name: SpecCursor CI
# Fast primary gate for PRs and main. Extended qualification lives in qualify.yml.
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
PNPM_VERSION: '8.15.0'
NODE_ENV: test
jobs:
quality:
name: Verify, type-check, test, audit
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile
- name: Architecture verification
run: node verify-implementation.js
- name: Format
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Type check
run: pnpm type-check
- name: Unit and integration tests
run: pnpm test:unit
- name: Security audit
run: |
pnpm audit --audit-level moderate
node scripts/security-audit.mjs
rust-worker:
name: Rust worker
runs-on: ubuntu-latest
timeout-minutes: 30
if: hashFiles('workers/rust-worker/Cargo.toml') != ''
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: clippy
- name: Test and clippy
working-directory: workers/rust-worker
run: |
cargo test --verbose
cargo clippy --all-targets --all-features -- -D warnings
lean-engine:
name: Lean engine
runs-on: ubuntu-latest
timeout-minutes: 45
if: hashFiles('workers/lean-engine/lakefile.lean') != ''
steps:
- uses: actions/checkout@v4
- name: Install elan
run: |
curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Lake build
working-directory: workers/lean-engine
run: lake build