1on:
2 pull_request:
3 push:
4 branches:
5 - main
6 - 0.2.x
7
8name: Continuous integration
9
10jobs:
11 test-features-none:
12 name: "Test Suite [Features: None]"
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@v3
16 - uses: actions-rs/toolchain@v1
17 with:
18 profile: minimal
19 toolchain: stable
20 override: true
21 - uses: actions-rs/cargo@v1
22 with:
23 command: test
24 args: --no-default-features
25
26 test-features-default:
27 name: "Test Suite [Features: Default]"
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@v3
31 - uses: actions-rs/toolchain@v1
32 with:
33 profile: minimal
34 toolchain: stable
35 override: true
36 - uses: actions-rs/cargo@v1
37 with:
38 command: test
39
40 test-features-alloc:
41 name: "Test Suite [Features: alloc]"
42 runs-on: ubuntu-latest
43 steps:
44 - uses: actions/checkout@v3
45 - uses: actions-rs/toolchain@v1
46 with:
47 profile: minimal
48 toolchain: stable
49 override: true
50 - uses: actions-rs/cargo@v1
51 with:
52 command: test
53 args: --no-default-features --features alloc
54
55 fmt:
56 name: Rustfmt
57 runs-on: ubuntu-latest
58 steps:
59 - uses: actions/checkout@v3
60 - uses: actions-rs/toolchain@v1
61 with:
62 profile: minimal
63 toolchain: stable
64 override: true
65 - run: rustup component add rustfmt
66 - uses: actions-rs/cargo@v1
67 with:
68 command: fmt
69 args: --all -- --check
70
71 clippy:
72 name: Clippy
73 runs-on: ubuntu-latest
74 steps:
75 - uses: actions/checkout@v3
76 - uses: actions-rs/toolchain@v1
77 with:
78 profile: minimal
79 toolchain: nightly
80 override: true
81 - run: rustup component add clippy
82 - uses: actions-rs/cargo@v1
83 with:
84 command: clippy
85 args: --workspace -- -D warnings
86
87 markdownlint:
88 name: Markdown Lint
89 runs-on: ubuntu-latest
90 steps:
91 - uses: actions/checkout@v3
92 with:
93 # Full git history is needed to get a proper list of changed files within `super-linter`
94 fetch-depth: 0
95 - name: Run Markdown Lint
96 uses: docker://ghcr.io/github/super-linter:slim-v4
97 env:
98 VALIDATE_ALL_CODEBASE: true
99 VALIDATE_MARKDOWN: true
100 DEFAULT_BRANCH: master