This repository was archived by the owner on Apr 3, 2026. It is now read-only.
ci: fix workflow #6
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" | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{github.workflow}}-${{github.ref}} | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| - "staging" | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: extractions/setup-just@v3 | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: "nightly" | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: npm install -g @antfu/ni | |
| - run: bun install | |
| - name: Run all code checks | |
| run: just full-check | |
| test-unit: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: "nightly" | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - name: Run unit tests | |
| env: | |
| FOUNDRY_FUZZ_RUNS: 2000 | |
| FOUNDRY_PROFILE: test-optimized | |
| run: forge test --match-path "tests/unit/**/*.sol" | |
| test-integration: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: "nightly" | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - name: Run integration tests | |
| env: | |
| FOUNDRY_FUZZ_RUNS: 2000 | |
| FOUNDRY_PROFILE: test-optimized | |
| run: forge test --match-path "tests/integration/**/*.sol" | |
| test-invariant: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: "nightly" | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - name: Run invariant tests | |
| env: | |
| FOUNDRY_PROFILE: test-optimized | |
| run: forge test --match-path "tests/invariant/**/*.sol" |