Skip to content

GDPR consent authorization fix; wire dead analytics/governance modules; drop placeholder submodules #190

GDPR consent authorization fix; wire dead analytics/governance modules; drop placeholder submodules

GDPR consent authorization fix; wire dead analytics/governance modules; drop placeholder submodules #190

Workflow file for this run

name: Smoke CI Gate
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
permissions:
contents: read
jobs:
smoke-test:
name: Code Quality & Testing Suite
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Validate CODEOWNERS coverage for security-critical contracts
shell: bash
run: |
test -f .github/CODEOWNERS
grep -Eq '^/contracts/bridge/\s+@MettaChain/bridge$' .github/CODEOWNERS
grep -Eq '^/contracts/lending/\s+@MettaChain/lending$' .github/CODEOWNERS
grep -Eq '^/contracts/oracle/\s+@MettaChain/oracle$' .github/CODEOWNERS
- name: Install Nightly Rust Toolchain (for fmt)
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install Stable Rust Toolchain (for clippy & test)
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache Cargo Build Artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-smoke-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-smoke-
- name: Check Code Formatting Style (nightly fmt)
run: cargo +nightly fmt --check
- name: Execute Static Analysis Compiler Lints (clippy)
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run Core Verification Tests (test)
run: cargo test --all-features --workspace