-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.72 KB
/
Copy pathci.yml
File metadata and controls
60 lines (56 loc) · 1.72 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
rust:
name: Rust and protocol gates
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust 1.88
run: rustup toolchain install 1.88.0 --profile minimal --component rustfmt,clippy
- name: Select Rust 1.88
run: rustup default 1.88.0
- name: Install conformance tools
run: |
sudo apt-get update
sudo apt-get install --yes jq ripgrep
python3 -m pip install --user check-jsonschema
- name: Check formatting
run: cargo fmt --all --check
- name: Lint
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Test
run: cargo test --all-features --all-targets --locked
- name: Validate SCGP-0.1
run: spec/validate.sh
- name: Validate ECEB-0.1
run: scripts/eceb-conformance.sh
- name: Replay public ECEB study
run: scripts/eceb-study-check.sh
- name: Replay adaptive ECEB study
run: scripts/eceb-adaptive-study-check.sh
- name: Build documentation
run: cargo doc --all-features --no-deps --locked
- name: Package
run: cargo package --locked
site:
name: Static site checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install site tools
run: |
sudo apt-get update
sudo apt-get install --yes ripgrep
- name: Check required site files and links
run: scripts/site-check.sh
- name: Validate HTML
run: npx --yes html-validate site/index.html site/404.html