forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (87 loc) · 3.47 KB
/
test_copm.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
on:
# Triggers the workflow on push or pull request events but only for the main branch
workflow_call:
env:
NODEJS_VERSION: v18.18.2
RUN_TRIVY_SCAN: true
RUN_CODE_COVERAGE: true
jobs:
matrix-pledge-and-getview:
name: pledge-getview-${{ matrix.net1 }}-${{ matrix.net2 }}
strategy:
fail-fast: false
matrix:
net1: ["fabric", "corda"]
net2: ["fabric", "corda"]
env:
FULL_BUILD_DISABLED: true
FREE_UP_GITHUB_RUNNER_DISK_SPACE_DISABLED: false
JEST_TEST_PATTERN: packages/cacti-copm-test/src/test/typescript/integration/test-copm-getverifiedview.test.ts packages/cacti-copm-test/src/test/typescript/integration/test-copm-pledge-claim.test.ts
JEST_TEST_RUNNER_DISABLED: false
JEST_TEST_COVERAGE_PATH: ./code-coverage-ts/copm-pledge-${{ matrix.net1 }}-${{ matrix.net2}}
JEST_TEST_CODE_COVERAGE_ENABLED: true
TAPE_TEST_PATTERN: ''
TAPE_TEST_RUNNER_DISABLED: true
COPM_NET_1: ${{ matrix.net1 }}
COPM_NET_2: ${{ matrix.net2 }}
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/copm_test/
with:
github-actor: ${GITHUB_ACTOR}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Make the ${{matrix.net1}} network
run: |
make -f Makefile_${{matrix.net1}} setup pledge-network
working-directory: packages/cacti-copm-test
- name: Make the ${{matrix.net2}} network
run: |
make -f Makefile_${{matrix.net2}} setup pledge-network
working-directory: packages/cacti-copm-test
if: ${{ matrix.net1 != matrix.net2 }}
- name: show the running network
run: docker container ls
- run: ./tools/ci.sh
- name: Upload coverage reports as artifacts
if: ${{ env.RUN_CODE_COVERAGE == 'true' }}
uses: actions/[email protected]
with:
name: copm-pledge-${{ matrix.net1 }}-${{ matrix.net2}}
path: ./code-coverage-ts/**/
matrix-lock:
name: lock-${{ matrix.net1 }}
strategy:
fail-fast: false
matrix:
net1: ["fabric", "corda"]
env:
FULL_BUILD_DISABLED: true
FREE_UP_GITHUB_RUNNER_DISK_SPACE_DISABLED: false
TAPE_TEST_PATTERN: ''
TAPE_TEST_RUNNER_DISABLED: true
JEST_TEST_PATTERN: packages/cacti-copm-test/src/test/typescript/integration/test-copm-lock-claim.test.ts
JEST_TEST_RUNNER_DISABLED: false
JEST_TEST_COVERAGE_PATH: ./code-coverage-ts/copm-lock-${{ matrix.net1 }}
JEST_TEST_CODE_COVERAGE_ENABLED: true
COPM_NET_1: ${{ matrix.net1 }}
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/copm_test/
with:
github-actor: ${GITHUB_ACTOR}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Make the ${{matrix.net1}} network
run: |
make -f Makefile_${{matrix.net1}} setup lock-network
working-directory: packages/cacti-copm-test
- name: show the running network
run: docker container ls
- run: ./tools/ci.sh
- name: Upload coverage reports as artifacts
if: ${{ env.RUN_CODE_COVERAGE == 'true' }}
uses: actions/[email protected]
with:
name: copm-lock-${{ matrix.net1 }}
path: ./code-coverage-ts/**/