-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (39 loc) · 1.02 KB
/
main.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
on:
pull_request:
push:
branches:
- main
name: continuous-integration
env:
CLIPPY_OPTIONS: "-D warnings"
jobs:
fmt-check-clippy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rust-lang/[email protected]
with:
rustflags: ""
- name: Format
run: cargo fmt --all -- --check
- name: Check the library
run: cargo check --workspace --lib
- name: Check the tests
run: cargo check --workspace --tests
- name: Clippy
run: cargo clippy --workspace -- $CLIPPY_OPTIONS
tests:
strategy:
fail-fast: true
matrix:
platform: [windows-latest, macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rust-lang/[email protected]
with:
rustflags: ""
- name: Tests
run: cargo test --workspace