chore(coprocessor): map verify_and_expand panics (if any) to an error #311
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: library-solidity-forge-tests | |
| on: | |
| pull_request: | |
| permissions: {} | |
| jobs: | |
| check-changes: | |
| name: library-solidity-forge-tests/check-changes | |
| permissions: | |
| actions: "read" # Required to read workflow run information | |
| contents: "read" # Required to checkout repository code | |
| pull-requests: "read" # Required to read pull request information | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changes-library-solidity: ${{ steps.filter.outputs.library-solidity }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: "false" | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| library-solidity: | |
| - .github/workflows/library-solidity-forge-tests.yml | |
| - library-solidity/** | |
| - host-contracts/** | |
| build: | |
| name: library-solidity-forge-tests/build (bpr) | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-library-solidity == 'true' }} | |
| runs-on: large_ubuntu_32 | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| permissions: | |
| contents: "read" # Required to checkout repository code | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: "false" | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de # v1.4.0 | |
| with: | |
| version: stable | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm --workspace=host-contracts ci --include=optional | |
| - run: make -C host-contracts ensure-addresses | |
| - run: cp ./library-solidity/.env.example ./library-solidity/.env | |
| - run: npm --workspace=library-solidity ci --include=optional | |
| - name: "Run forge tests" | |
| run: "cd library-solidity && forge soldeer install && forge test" |