Adding Robinhood and Citrea artifacts (#702) #142
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 | |
| permissions: {} | |
| # Triggers are arranged so each commit produces exactly one CI run: | |
| # - push to main always runs (post-merge or direct push) | |
| # - pull_request events always run (PRs always have CI before merge) | |
| # - feature-branch pushes outside a PR don't trigger anything | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| check: | |
| name: Foundry project | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| submodules: recursive | |
| # Full history so the pinned v1.0.0 / v1.3.0 commits resolve for the | |
| # upgrade-regression worktrees below. | |
| fetch-depth: 0 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.5.0 | |
| - name: Show Forge version | |
| run: forge --version | |
| # TODO: re-enable after main lands; one-shot `forge fmt` to follow. | |
| # Disabled now to preserve byte-identical audited Solidity. | |
| # - name: Run Forge fmt | |
| # run: forge fmt --check | |
| - name: Run Forge build | |
| run: forge build --sizes | |
| - name: Run Forge tests | |
| run: forge test -vvv --no-match-path '**/fork/**' | |
| # The upgrade-regression suite lives in a separate dir (test-upgrade/) run | |
| # under the `upgrade` profile, against historical source pinned as git | |
| # worktrees. Mirrors `just test-upgrade-setup` without needing `just`. | |
| - name: Set up historical worktrees | |
| run: | | |
| git worktree add lib/osx-v1.0.0 c2b9d23a96654e81f22fbf91e6f334ef26a370af | |
| git worktree add lib/osx-v1.3.0 6f35a85f6159ae62c68776c5cff57d4e8cfe1549 | |
| - name: Run upgrade-regression tests | |
| run: FOUNDRY_PROFILE=upgrade forge test -vvv |