-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (52 loc) · 1.79 KB
/
tests.yml
File metadata and controls
69 lines (52 loc) · 1.79 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
name: Tests
on: [push]
concurrency:
group: pr-${{ github.head_ref }}
cancel-in-progress: true
jobs:
setup-and-run:
name: Setup and run tests
runs-on: ubuntu-latest
timeout-minutes: 60
env:
AZTEC_VERSION: 0.87.2
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for comparison
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Check for changes in src/
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'src/**'
- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
bash tmp.sh <<< yes "yes"
- name: Update path
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH
- name: Set Aztec version
run: |
VERSION=$AZTEC_VERSION aztec-up
- name: Start sandbox
run: |
aztec start --sandbox &
- name: Install project dependencies
run: yarn
- name: Compile
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"
- name: Codegen
run: script -e -c "aztec codegen target --outdir src/artifacts"
- name: Start PXE
run: |
VERSION=$AZTEC_VERSION aztec start --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ --pxe.proverEnabled false &
- name: Run nr tests
run: |
script -e -c "aztec test"
- name: Run js tests
run: script -e -c "BASE_PXE_URL=http://localhost NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json"