-
Notifications
You must be signed in to change notification settings - Fork 59
50 lines (39 loc) · 1.14 KB
/
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
41
42
43
44
45
46
47
48
49
50
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 Rust, clippy and rustfmt
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check
run: |
cargo check --all-features
cargo check --all-features \
--manifest-path dolby_vision/Cargo.toml
- name: Test
run: |
cargo test --all-features
cargo test --all-features --bins
cargo test --all-features --all-targets \
--manifest-path dolby_vision/Cargo.toml
- name: Rustfmt
run: |
cargo fmt --check
cargo fmt --check \
--manifest-path dolby_vision/Cargo.toml
- name: Clippy
run: |
cargo clippy --all-features \
--all-targets --tests -- --deny warnings
cargo clippy --all-features \
--manifest-path dolby_vision/Cargo.toml \
--all-targets --tests -- --deny warnings