chore(deps): bump node from 20.15.1 to 26.4.0 #11
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: Report gas diff | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| compare_gas_reports: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: Check out the repo | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Use Node.js 20.15.1 | |
| uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
| with: | |
| node-version: "20.15.1" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e # v1.5.0 | |
| with: | |
| version: stable | |
| - name: Show Foundry config | |
| run: forge config | |
| - name: Run unit tests with gas report | |
| run: forge test --no-match-path "test/fuzz/*" --gas-report > gasreport.ansi | |
| env: | |
| # Keep gas output more stable between reruns. | |
| FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }} | |
| - name: Compare gas reports | |
| id: gas_diff | |
| uses: Rubilmax/foundry-gas-diff@60e763d02526ee3299bd04278cb178d1547b134b # v3.21 | |
| with: | |
| summaryQuantile: 0.0 | |
| sortCriteria: avg,max | |
| sortOrders: desc,asc | |
| ignore: test/fuzz/**/* | |
| - name: Add gas diff to sticky comment | |
| if: github.event_name == 'pull_request' | |
| uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2 | |
| with: | |
| delete: ${{ !steps.gas_diff.outputs.markdown }} | |
| message: ${{ steps.gas_diff.outputs.markdown }} |