Merge pull request #1171 from Codex723/feature/stream-detail-redesign… #111
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Contracts CI | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - "contracts/**" | ||
| jobs: | ||
| test-and-coverage: | ||
| name: Quality & Coverage | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: rustfmt, clippy | ||
| - name: Check Formatting | ||
| run: cargo fmt --all -- --check | ||
| working-directory: ./contracts | ||
| - name: Lint with Clippy | ||
| run: cargo clippy -- -D warnings | ||
| working-directory: ./contracts | ||
| - name: Run Cargo Tests | ||
| uses: nick-invision/retry@v2 | ||
| with: | ||
| timeout_minutes: 10 | ||
| max_attempts: 3 | ||
| command: cargo test --all | ||
| working-directory: ./contracts | ||
| - name: Install Tarpaulin | ||
| run: cargo install cargo-tarpaulin | ||
| - name: Run Tests & Verify Coverage | ||
| uses: nick-invision/retry@v2 | ||
| with: | ||
| timeout_minutes: 15 | ||
| max_attempts: 3 | ||
| command: | | ||
| cargo tarpaulin \ | ||
| --branch \ | ||
| --fail-under 90 \ | ||
| --out Xml | ||
| working-directory: ./contracts | ||