chore: pro 339 chore reduce code duplication in config checker script… #416
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-confidential-wrapper-tests | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/contracts-confidential-wrapper-tests.yml' | |
| - 'contracts/confidential-wrapper/**' | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ci-contracts-confidential-wrapper-tests-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| tests: | |
| name: contracts-confidential-wrapper-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 dependencies | |
| working-directory: contracts/confidential-wrapper | |
| run: npm ci | |
| - name: Run lint | |
| working-directory: contracts/confidential-wrapper | |
| run: make conformance | |
| - name: Run unit tests | |
| working-directory: contracts/confidential-wrapper | |
| run: make test |