🔁 Update forge-std
#138
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 smart contracts | |
| on: [push, pull_request, workflow_dispatch] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Show the Foundry CI config | |
| run: forge config | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | |
| - name: Foundry tests | |
| run: forge test | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | |
| - name: Show the Foundry default config | |
| run: forge config | |
| env: | |
| FOUNDRY_PROFILE: default | |
| FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" | |
| - name: Run snapshot | |
| run: NO_COLOR=1 forge snapshot >> $GITHUB_STEP_SUMMARY | |
| env: | |
| FOUNDRY_PROFILE: default | |
| FOUNDRY_DISABLE_NIGHTLY_WARNING: "1" |