-
Notifications
You must be signed in to change notification settings - Fork 41
49 lines (41 loc) · 1.01 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
on:
pull_request:
types: [opened, reopened]
branches:
- main
push:
branches:
- main
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show
- name: Run cargo fmt
run: cargo fmt -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
run: cargo clippy -- -D warnings
- name: Run cargo clippy alloc
uses: actions-rs/cargo@v1
run: >
cargo clippy --no-default-features
--features alloc -- -D warnings
- name: Run cargo test
run: cargo test
- name: Run cargo test alloc
run: cargo test --no-default-features --features alloc
no-std-build:
name: Test no_std support
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check wasm compatibility
run: |-
cd ensure_no_std
rustup show
cargo build -r