forked from 0xPolygonMiden/miden-client
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (86 loc) · 2.52 KB
/
test.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
name: Test
on:
push:
branches: [main, next]
pull_request:
types: [opened, repoened, synchronize]
jobs:
test:
name: Test Rust ${{matrix.toolchain}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
os: [ubuntu]
steps:
- uses: actions/checkout@main
- name: Install Rust with ${{matrix.toolchain}} toolchain
run: rustup update --no-self-update ${{ matrix.toolchain }}
- uses: taiki-e/install-action@nextest
- name: make - test
run: make test
integration_tests:
name: integration_tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust
run: rustup update --no-self-update
- uses: taiki-e/install-action@nextest
- run: make clean-node
- run: make node
- run: make start-node > /dev/null &
- run: cargo update
- run: make integration-test-full
- name: Kill miden-node
if: always()
run: make kill-node
integration_tests_web_client:
name: integration_tests_web_client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust
run: |
rustup update --no-self-update
rustup target add wasm32-unknown-unknown
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- run: make clean-node
- run: make node
- run: make start-node > /dev/null &
- run: cargo update
- run: make integration-test-web-client
- name: Kill miden-node
if: always()
run: make kill-node
integration_tests_remote_prover_web_client:
name: integration_tests_remote_prover_web_client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust
run: |
rustup update --no-self-update
rustup target add wasm32-unknown-unknown
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- run: make clean-node
- run: make node
- run: make start-node > /dev/null &
- run: make clean-prover
- run: make prover
- run: make start-prover > /dev/null &
- run: cargo update
- run: make integration-test-remote-prover-web-client
- name: Kill miden-node
if: always()
run: make kill-node
- name: Kill miden-prover
if: always()
run: make kill-prover