-
Notifications
You must be signed in to change notification settings - Fork 47
63 lines (52 loc) · 1.54 KB
/
checks_and_tests.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
name: Checks and tests
on: [push, pull_request]
jobs:
check_and_test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain: ["1.74.0", nightly]
name: ${{ matrix.toolchain }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
components: clippy
- name: Run Clippy for default configuration
uses: actions-rs/cargo@v1
with:
command: clippy
args: "-- -A unknown_lints"
- name: Run tests for default configuration
uses: actions-rs/cargo@v1
with:
command: test
- name: Run rustdoc for default configuration
uses: actions-rs/cargo@v1
with:
command: doc
args: "--no-deps"
- name: Run Clippy for Tokio configuration
uses: actions-rs/cargo@v1
with:
command: clippy
args: "--feature tokio -- -A unknown_lints"
- name: Run tests for Tokio configuration
uses: actions-rs/cargo@v1
with:
command: test
args: "--feature tokio"
- name: Run rustdoc for Tokio configuration
uses: actions-rs/cargo@v1
with:
command: doc
args: "--feature tokio --no-deps"