Repository navigation
Track insurance-fund debt on the vault #80
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: Contract tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "contracts/**" | |
| - ".github/workflows/contract-tests.yml" | |
| push: | |
| branches: | |
| - main | |
| - stg | |
| - dev | |
| paths: | |
| - "contracts/**" | |
| - ".github/workflows/contract-tests.yml" | |
| jobs: | |
| pre: | |
| name: Skip duplicate runs | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_skip: ${{ steps.skip-check.outputs.should_skip }} | |
| steps: | |
| - id: skip-check | |
| uses: fkirc/skip-duplicate-actions@v5 | |
| with: | |
| concurrent_skipping: never | |
| skip_after_successful_duplicate: "true" | |
| paths_ignore: '["**/*.md"]' | |
| test: | |
| name: Contract tests | |
| needs: pre | |
| if: needs.pre.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: ./contracts | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: contracts/package.json | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| cache-dependency-path: contracts/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Compile contracts | |
| run: pnpm compile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| - name: Run tests | |
| run: pnpm test |