-
Notifications
You must be signed in to change notification settings - Fork 53
61 lines (58 loc) · 1.8 KB
/
ci.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
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
check-code-format:
name: Check code format
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Scrypto toolchain
run: cargo install --git https://github.com/radixdlt/radixdlt-scrypto --rev c948bba0565746ac324fc4b004149da6149b5a96 --bins simulator
- name: Check format
run: bash ./check.sh
run-tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Add wasm target (nightly)
run: rustup +nightly target add wasm32-unknown-unknown
- name: Install Scrypto toolchain
run: cargo install --git https://github.com/radixdlt/radixdlt-scrypto --rev c948bba0565746ac324fc4b004149da6149b5a96 --bins simulator
- name: Run tests
run: ./test.sh
run-defi-demo:
name: Run DeFi demo
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Add wasm target (nightly)
run: rustup +nightly target add wasm32-unknown-unknown
- name: Install Scrypto toolchain
run: cargo install --git https://github.com/radixdlt/radixdlt-scrypto --rev c948bba0565746ac324fc4b004149da6149b5a96 --bins simulator
- name: Run tests
run: ./defi/demo.sh