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