feat(protocol-contracts): add ConfidentialWrapperV2 task and tests (#… #58
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
| # Run tests | |
| name: contracts-governance-tests | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/contracts-governance-tests.yml' | |
| - 'contracts/governance/**' | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ci-contracts-governance-tests-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| tests: | |
| name: contracts-governance-tests/tests (bpr) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: 'read' # Required to checkout repository code | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 | |
| with: | |
| version: 9 | |
| - name: Setup Node | |
| uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
| with: | |
| node-version: 20.x | |
| cache: pnpm | |
| cache-dependency-path: contracts/governance/pnpm-lock.yaml | |
| - name: Install dependencies | |
| working-directory: contracts/governance | |
| run: pnpm install --frozen-lockfile | |
| - name: Run compile | |
| working-directory: contracts/governance | |
| run: pnpm run compile | |
| - name: Run unit tests | |
| working-directory: contracts/governance | |
| run: pnpm test |