GHO CCIP Avalanche Expansion #185
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: Test | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bgd-labs/github-workflows/.github/actions/setup-node@main | |
| - name: Enforce linting | |
| run: npm run lint --check | |
| test-sol: | |
| name: Foundry build n test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: bgd-labs/action-rpc-env@main | |
| with: | |
| ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |
| # we simply use foundry zk for all jobs in this repo | |
| - name: Run Foundry setup | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main | |
| with: | |
| ZKSYNC: "true" | |
| - name: Run Forge tests | |
| id: test | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-test@main | |
| with: | |
| MODE: "CHANGED" | |
| FOUNDRY_PROFILE: "test" | |
| - name: Run ZK tests | |
| id: zktest | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-test@main | |
| with: | |
| MODE: "CHANGED" | |
| ZKSYNC: true | |
| ROOT_DIR: "zksync" | |
| FOUNDRY_PROFILE: "test" | |
| - name: Create comment | |
| uses: bgd-labs/github-workflows/.github/actions/comment-artifact@main | |
| # we let failing tests pass so we can log them in the comment, still we want the ci to fail | |
| - name: Post test result | |
| if: ${{ steps.test.outputs.testStatus != 0 || steps.zktest.outputs.testStatus != 0 }} | |
| run: | | |
| echo "tests failed" | |
| exit 1 | |
| test-js: | |
| uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main |