|
1 | | -name: Smoke CI Gate |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [ main, master, develop ] |
6 | | - pull_request: |
7 | | - branches: [ main, master, develop ] |
8 | | - |
9 | | -permissions: |
10 | | - contents: read |
11 | | - |
12 | | -jobs: |
13 | | - smoke-test: |
14 | | - name: Code Quality & Testing Suite |
15 | | - runs-on: ubuntu-latest |
16 | | - |
17 | | - steps: |
18 | | - - name: Checkout Code Repository |
19 | | - uses: actions/checkout@v4 |
20 | | - |
21 | | - - name: Validate CODEOWNERS coverage for security-critical contracts |
22 | | - shell: bash |
23 | | - run: | |
24 | | - test -f .github/CODEOWNERS |
25 | | - grep -Eq '^/contracts/bridge/\s+@MettaChain/bridge$' .github/CODEOWNERS |
26 | | - grep -Eq '^/contracts/lending/\s+@MettaChain/lending$' .github/CODEOWNERS |
27 | | - grep -Eq '^/contracts/oracle/\s+@MettaChain/oracle$' .github/CODEOWNERS |
28 | | -
|
29 | | - - name: Install Nightly Rust Toolchain (for fmt) |
30 | | - uses: dtolnay/rust-toolchain@nightly |
31 | | - with: |
32 | | - components: rustfmt |
33 | | - |
34 | | - - name: Install Stable Rust Toolchain (for clippy & test) |
35 | | - uses: dtolnay/rust-toolchain@stable |
36 | | - with: |
37 | | - components: clippy |
38 | | - |
39 | | - - name: Cache Cargo Build Artifacts |
40 | | - uses: actions/cache@v4 |
41 | | - with: |
42 | | - path: | |
43 | | - ~/.cargo/bin/ |
44 | | - ~/.cargo/registry/index/ |
45 | | - ~/.cargo/registry/cache/ |
46 | | - ~/.cargo/git/db/ |
47 | | - target/ |
48 | | - key: ${{ runner.os }}-cargo-smoke-${{ hashFiles('**/Cargo.lock') }} |
49 | | - restore-keys: | |
50 | | - ${{ runner.os }}-cargo-smoke- |
51 | | -
|
52 | | - - name: Check Code Formatting Style (nightly fmt) |
53 | | - run: cargo +nightly fmt --check |
54 | | - |
55 | | - - name: Execute Static Analysis Compiler Lints (clippy) |
56 | | - run: cargo clippy --all-targets --all-features -- -D warnings |
57 | | - |
58 | | - - name: Run Core Verification Tests (test) |
59 | | - run: cargo test --all-features --workspace |
| 1 | +# Smoke CI Gate - TEMPORARILY DISABLED |
| 2 | +# |
| 3 | +# Disabled at maintainer request. The gate currently fails for EVERY pull |
| 4 | +# request regardless of its contents: the pinned dependency set (e.g. |
| 5 | +# trie-db 0.28.0) no longer compiles under the stable rustc that CI |
| 6 | +# installs fresh on each run (1.98.0), so `cargo clippy --all-targets |
| 7 | +# --all-features` aborts before ever reaching project code, and the |
| 8 | +# workspace test step hits the same failure. |
| 9 | +# |
| 10 | +# Re-enable once the dependency/toolchain baseline is refreshed. |
0 commit comments