-
Notifications
You must be signed in to change notification settings - Fork 47
52 lines (46 loc) · 1.18 KB
/
light-sdk-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
on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- opened
- synchronize
- ready_for_review
- reopened
name: light-sdk-tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
light-sdk-tests:
name: light-sdk-tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: sdk-tests-light-rpc-cli
sub-tests: '[
"@lightprotocol/circuit-lib.js",
"@lightprotocol/prover.js",
]'
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: ${{ matrix.name }}
run: |
source ./scripts/devenv.sh
IFS=', ' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
npx nx test "$subtest"
done