-
Notifications
You must be signed in to change notification settings - Fork 33
97 lines (89 loc) · 2.64 KB
/
light-system-programs-tests.yml
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
92
93
94
95
96
97
on:
push:
branches:
- main
paths:
- "programs/**"
- "test-programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
- "test-utils/**"
pull_request:
branches:
- "*"
paths:
- "programs/**"
- "test-programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
- "test-utils/**"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: system-programs-examples-tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
system-programs:
name: system-programs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
include:
- program: sdk-test-program
sub-tests: '[
"cargo-test-sbf -p sdk-test -- --test-threads=1"
]'
- program: account-compression
sub-tests: '[
"cargo-test-sbf -p account-compression-test"
]'
- program: light-system-program
sub-tests: '[
"cargo-test-sbf -p system-test -- --test-threads=1"
]'
- program: light-registry
sub-tests: '[
"cargo-test-sbf -p registry-test -- --test-threads=1"
]'
- program: light-compressed-token
sub-tests: '[
"cargo-test-sbf -p compressed-token-test -- --test-threads=1"
]'
- program: system-cpi-test
sub-tests: '[
"cargo-test-sbf -p system-cpi-test -- --test-threads=1"
]'
- program: random-e2e-test
sub-tests: '[
"RUST_MIN_STACK=8388608 cargo-test-sbf -p e2e-test -- --nocapture --test-threads=1"
]'
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Build CLI
run: |
source ./scripts/devenv.sh
npx nx build @lightprotocol/zk-compression-cli
- name: build-programs
run: |
source ./scripts/devenv.sh
anchor build
- name: ${{ matrix.program }}
run: |
source ./scripts/devenv.sh
IFS=',' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
echo "$subtest"
eval "RUSTFLAGS=\"-D warnings\" $subtest"
done