ci: bump setup-just to v4 for node24 runtime #497
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 | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{github.workflow}}-${{github.ref}} | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v5 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install the Node.js dependencies | |
| run: bun install | |
| - name: Install Just | |
| uses: extractions/setup-just@v4 | |
| - name: Run the full checks | |
| run: just full-check | |
| - name: Add check summary | |
| run: | # shell | |
| echo "## Check result" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v5 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install the Node.js dependencies | |
| run: bun install | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Build the Solidity code | |
| run: forge build | |
| - name: Add build summary | |
| run: | # shell | |
| echo "## Build result" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY | |
| test: | |
| needs: [check, build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v5 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install the Node.js dependencies | |
| run: bun install | |
| - name: Run the tests | |
| run: forge test --summary | |
| - name: Add test summary | |
| run: | # shell | |
| echo "## Tests result" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |