-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (110 loc) · 3.28 KB
/
Copy pathci.yml
File metadata and controls
120 lines (110 loc) · 3.28 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: CI
on:
push:
branches: [ master, main, develop, rust ]
pull_request:
branches: [ master, main, develop, rust ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Run tests
run: cargo test --all --verbose
conformance:
name: Conformance Suites (v2.1.3)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Parser/Validator Core Conformance
run: |
cargo test -q -p fct-parser
cargo test -q -p fct-validator
- name: Fixture and Semantics Conformance
run: |
cargo test -q --test conformance_layout_tests
cargo test -q --test fts_conformance_matrix_tests
cargo test -q --test facet_semantics_tests
- name: Determinism Conformance
run: |
cargo test -q --test replay_determinism_tests
spec-examples-matrix:
name: Spec Examples Matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build CLI binary
run: cargo build --release --bin facet-fct
- name: Run ordered spec smoke suite
run: ./scripts/smoke_examples_spec.sh ./target/release/facet-fct
- name: Run spec scenario matrix
run: ./scripts/spec_matrix_examples.sh ./target/release/facet-fct
compliance-report:
name: Compliance Report
runs-on: ubuntu-latest
needs: [conformance, spec-examples-matrix]
steps:
- uses: actions/checkout@v4
- name: Generate report from checklist
run: |
python3 scripts/generate_compliance_report.py \
--checklist docs/14-v2.1.3-migration-checklist.md \
--output compliance-report.md
- name: Upload compliance artifact
uses: actions/upload-artifact@v4
with:
name: compliance-report
path: compliance-report.md
audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run cargo audit
run: cargo audit
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --release --verbose