1+ # Run tests
2+ name : protocol-contracts-confidential-wrapper-tests
3+
4+ on :
5+ pull_request :
6+
7+ push :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ permissions : {}
13+
14+ concurrency :
15+ group : ci-protocol-contracts-confidential-wrapper-tests-${{ github.ref }}
16+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
17+
18+ jobs :
19+ check-changes :
20+ name : protocol-contracts-confidential-wrapper-tests/check-changes
21+ permissions :
22+ actions : ' read' # Required to read workflow run information
23+ contents : ' read' # Required to checkout repository code
24+ pull-requests : ' read' # Required to read pull request information
25+ runs-on : ubuntu-latest
26+ outputs :
27+ changes-protocol-contracts-confidential-wrapper : ${{ steps.filter.outputs.protocol-contracts-confidential-wrapper }}
28+ steps :
29+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+ with :
31+ persist-credentials : ' false'
32+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
33+ id : filter
34+ with :
35+ filters : |
36+ protocol-contracts-confidential-wrapper:
37+ - .github/workflows/protocol-contracts-confidential-wrapper-tests.yml
38+ - protocol-contracts/staking/**
39+ tests :
40+ name : protocol-contracts-confidential-wrapper-tests/tests (bpr)
41+ needs : check-changes
42+ # if: ${{ needs.check-changes.outputs.changes-protocol-contracts-confidential-wrapper == 'true' }}
43+ # TODO: Re-enable this once the tests are fixed
44+ # See https://github.com/zama-ai/fhevm-internal/issues/796
45+ if : false
46+ runs-on : ubuntu-latest
47+ permissions :
48+ contents : ' read' # Required to checkout repository code
49+ steps :
50+ - name : Checkout project
51+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52+ with :
53+ persist-credentials : ' false'
54+
55+ - name : Install dependencies
56+ working-directory : protocol-contracts/confidential-wrapper
57+ run : npm ci
58+
59+ - name : Run lint
60+ working-directory : protocol-contracts/confidential-wrapper
61+ run : npm run lint
62+
63+ - name : Run compile
64+ working-directory : protocol-contracts/confidential-wrapper
65+ run : npm run compile
66+
67+ - name : Run build:ts
68+ working-directory : protocol-contracts/confidential-wrapper
69+ run : npm run build:ts
70+
71+ - name : Run unit tests
72+ working-directory : protocol-contracts/confidential-wrapper
73+ run : make test
74+
75+ - name : Run coverage
76+ working-directory : protocol-contracts/confidential-wrapper
77+ run : make run coverage
0 commit comments