-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (32 loc) · 851 Bytes
/
ci.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
name: Check, test, rustfmt and clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install fontconfig
run: |
sudo apt-get update
sudo apt-get install libfontconfig-dev
- name: Install Rust, clippy and rustfmt
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check
run: |
cargo check --workspace --all-features
- name: Test
run: |
cargo test --workspace --all-features
- name: Rustfmt
run: |
cargo fmt --all --check
- name: Clippy
run: |
cargo clippy --workspace --all-features --all-targets --tests -- --deny warnings