Repository navigation
73 lines (59 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
73 lines (59 loc) · 1.99 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
name: Continuous Integration
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: Build, Lint & Test Workspace
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Set up Python for example verification
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache cargo registry & target
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.os }}-cargo-ci-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.os }}-cargo-ci-
- name: Verify code formatting
run: cargo fmt --all -- --check
- name: Run clippy linter
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Run workspace tests
run: cargo test --workspace --verbose
- name: Build release binaries
run: cargo build --workspace --release
- name: Verify CLI test suite
run: cargo test -p techscript_cli
- name: Verify 100% of official TechScript examples (20/20)
run: python scripts/verify_all_examples.py
- name: Verify Showcase App pure TechScript files
shell: bash
run: |
./target/release/tsc run showcase-app/src/main.txs
./target/release/tsc run showcase-app/src/app.txs
./target/release/tsc run showcase-app/src/navigation.txs
./target/release/tsc run showcase-app/src/theme.txs
./target/release/tsc run showcase-app/src/components/dock.txs
./target/release/tsc run showcase-app/src/screens/home.txs