fix(gateway-contracts): add support to ID counters and function params propagation in mock contracts #79
Workflow file for this run
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: Fhevm Gateway Contracts Integrity Checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: contract-integrity-checks-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| check-changes: | |
| permissions: | |
| actions: 'read' | |
| contents: 'read' | |
| pull-requests: 'read' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changes-gw-contracts: ${{ steps.filter.outputs.gw-contracts }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| gw-contracts: | |
| - .github/workflows/gateway-contracts-integrity-checks.yml | |
| - gateway-contracts/rust_bindings/** | |
| - gateway-contracts/contracts/** | |
| - gateway-contracts/scripts/** | |
| - gateway-contracts/Makefile | |
| contract-integrity-checks: | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-gw-contracts == 'true' }} | |
| name: Contract integrity checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - 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.1.0 | |
| - name: Install dependencies | |
| working-directory: gateway-contracts | |
| run: npm ci | |
| - name: Check bindings are up-to-date | |
| working-directory: gateway-contracts | |
| run: make check-bindings | |
| - name: Check contract selectors are up-to-date | |
| working-directory: gateway-contracts | |
| run: make check-selectors | |
| - name: Check mock contracts are up-to-date | |
| working-directory: gateway-contracts | |
| run: make check-mocks | |
| - name: Check licenses compliance | |
| working-directory: gateway-contracts | |
| run: make check-licenses |