forked from open-web3-stack/open-runtime-module-library
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 1.36 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
name: Test
on:
pull_request:
branches:
- master
- polkadot-**
paths-ignore:
- '**/README.md'
push:
branches:
- master
- polkadot-**
paths-ignore:
- '**/README.md'
env:
toolchain: stable
target: wasm32-unknown-unknown
jobs:
build:
strategy:
matrix:
flavour:
- asset-registry
- auction
- authority
- benchmarking
- build-script-utils
- currencies
- gradually-update
- nft
- oracle
- parameters
- payments
- rewards
- tokens
- traits
- unknown-tokens
- utilities
- vesting
- xcm
- xcm-support
- xtokens
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install protobuf-compiler
run: |
apt-get install protobuf-compiler
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.toolchain }}
components: rustfmt, clippy
target: ${{ env.target }}
- name: Run cargo tests
run: |
make Cargo.toml
cd ${{matrix.flavour}}
cargo clippy -- -D warnings
cargo test
- name: cargo build
run: |
cd ${{matrix.flavour}}
cargo build --release