-
Notifications
You must be signed in to change notification settings - Fork 50
85 lines (77 loc) · 2.34 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
on:
push:
branches:
- main
paths:
- "programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
pull_request:
branches:
- main
paths:
- "programs/**"
- "circuit-lib/verifier/**"
- "merkle-tree/**"
- ".github/workflows/light-system-programs-tests.yml"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: system-programs-psp-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: buildjet-2vcpu-ubuntu-2204
strategy:
matrix:
include:
- program: account-compression
sub-tests: '[
"cargo-test-sbf -p account-compression-test -- --test-threads=1"
]'
- program: light-compressed-pda
sub-tests: '[
"cargo-test-sbf -p compressed-pda-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: token-escrow
sub-tests: '[
"cargo-test-sbf -p token-escrow -- --test-threads=1"
]'
- program: program-owned-account-test
sub-tests: '[
"cargo-test-sbf -p program-owned-account-test -- --test-threads=1"
]'
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: true
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: ${{ matrix.program }}
run: |
source ./scripts/devenv.sh
mkdir -p ./target/deploy
cp ./third-party/solana-program-library/spl_noop.so ./target/deploy/spl_noop.so
anchor build
IFS=',' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
echo "$subtest"
eval "$subtest"
done