.github/workflows/ci.yml54 lines · 1139 bytes
| 1 | name: ci |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | contracts: |
| 13 | runs-on: ubuntu-latest |
| 14 | env: |
| 15 | FOUNDRY_PROFILE: eth |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | - uses: foundry-rs/foundry-toolchain@v1 |
| 19 | with: |
| 20 | version: v1.8.5 |
| 21 | # online once so the toolchain can fetch the pinned solc; the tests then run offline |
| 22 | - run: forge build |
| 23 | - run: forge test --offline |
| 24 | |
| 25 | workflow: |
| 26 | runs-on: ubuntu-latest |
| 27 | defaults: |
| 28 | run: |
| 29 | working-directory: cre/veto |
| 30 | steps: |
| 31 | - uses: actions/checkout@v4 |
| 32 | - uses: oven-sh/setup-bun@v2 |
| 33 | with: |
| 34 | bun-version: 1.4.2 |
| 35 | - run: bun install --frozen-lockfile |
| 36 | - run: bun test |
| 37 | - run: bun run typecheck |
| 38 | |
| 39 | web: |
| 40 | runs-on: ubuntu-latest |
| 41 | env: |
| 42 | CI: "1" |
| 43 | defaults: |
| 44 | run: |
| 45 | working-directory: web |
| 46 | steps: |
| 47 | - uses: actions/checkout@v4 |
| 48 | - uses: actions/setup-node@v4 |
| 49 | with: |
| 50 | node-version: 22 |
| 51 | - run: npm ci --no-audit --no-fund |
| 52 | - run: npm run typecheck |
| 53 | - run: npm run selftest |
| 54 | - run: npm run build |