Feat/add release workflow #16
Workflow file for this run
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.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Foundry build n test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.READ_ONLY_PAT }} | |
| - uses: bgd-labs/action-rpc-env@main | |
| with: | |
| ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |
| - name: Run Foundry setup | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main | |
| - name: Run Forge tests | |
| id: test | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-test@main | |
| - name: Run Gas report | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-gas-report@main | |
| - name: Run Lcov report | |
| uses: bgd-labs/github-workflows/.github/actions/foundry-lcov-report@main | |
| - name: Store artifacts | |
| 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 | |
| if: ${{ steps.test.outputs.testStatus != 0 }} | |
| run: | | |
| echo "tests failed" | |
| exit 1 |