Bug <33 #3
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: CI | ||
|
Check failure on line 1 in .github/workflows/ci.yml
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| RUST_BACKTRACE: 1 | ||
| CARGO_INCREMENTAL: 0 | ||
| jobs: | ||
| # ── Format ──────────────────────────────────────────────────────── | ||
| fmt: | ||
| name: Format | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: rustfmt | ||
| - run: cargo fmt --check | ||
| # ── Lint (SAST) ────────────────────────────────────────────────── | ||
| clippy: | ||
| name: Clippy | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: clippy | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - run: cargo clippy --workspace --all-targets -- -D warnings | ||
| # ── Test ────────────────────────────────────────────────────────── | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - uses: taiki-e/install-action@nextest | ||
| - run: cargo nextest run --workspace | ||
| - run: cargo test --doc | ||
| # ── SCA (Supply Chain) ─────────────────────────────────────────── | ||
| deny: | ||
| name: Cargo Deny | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: EmbarkStudios/cargo-deny-action@v2 | ||
| audit: | ||
| name: Cargo Audit | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: rustsec/audit-check@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| # ── Secrets Detection ──────────────────────────────────────────── | ||
| gitleaks: | ||
| name: Gitleaks | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: gitleaks/gitleaks-action@v2 | ||
| env: | ||
| GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} | ||
| # ── TypeScript SDK ─────────────────────────────────────────────── | ||
| sdk: | ||
| name: TypeScript SDK | ||
| runs-on: ubuntu-latest | ||
| if: ${{ hashFiles('sdk/connector-sdk-ts/package.json') != '' }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: pnpm | ||
| cache-dependency-path: sdk/connector-sdk-ts/pnpm-lock.yaml | ||
| - run: pnpm -C sdk/connector-sdk-ts install --frozen-lockfile | ||
| - run: pnpm -C sdk/connector-sdk-ts run check | ||
| - run: pnpm -C sdk/connector-sdk-ts run test | ||