forked from MaxOhn/rosu-pp
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (40 loc) · 1.15 KB
/
check.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
name: Clippy and Tests
on:
push:
branches:
- main
- next
pull_request:
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
feature: [default, async_tokio, async_std]
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Run clippy
run: cargo clippy --no-default-features --features ${{ matrix.feature }}
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
feature: [default, async_tokio, async_std]
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Run tests
run: cargo nextest run --no-default-features --features ${{ matrix.feature }} --no-fail-fast --failure-output=immediate-final