feat(test-suite): replace fhevm bash cli with Bun runtime #1789
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
| # This workflow verifies that: | |
| # - The Rust bindings crate version and files are up-to-date | |
| # - Contract mocks and selectors are current | |
| # - Dependency licenses compliance | |
| name: host-contracts-integrity-checks | |
| on: | |
| pull_request: | |
| permissions: {} | |
| concurrency: | |
| group: host-contract-integrity-checks-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| check-changes: | |
| name: host-contracts-integrity-checks/check-changes | |
| permissions: | |
| contents: 'read' # Required to checkout repository code | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changes-host-contracts: ${{ steps.filter.outputs.host-contracts }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| host-contracts: | |
| - .github/workflows/host-contracts-integrity-checks.yml | |
| - host-contracts/** | |
| contract-integrity-checks: | |
| name: host-contracts-integrity-checks/contract-integrity-checks (bpr) | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-host-contracts == 'true' }} | |
| permissions: | |
| contents: 'read' # Required to checkout repository code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Cache npm | |
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c # v1.3.1 | |
| with: | |
| version: v1.3.1 | |
| - name: Install dependencies | |
| working-directory: host-contracts | |
| run: npm ci && forge soldeer install | |
| - name: Check bindings are up-to-date | |
| working-directory: host-contracts | |
| run: make check-bindings | |
| - name: Check contract selectors are up-to-date | |
| working-directory: host-contracts | |
| run: make check-selectors |