-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 1000 Bytes
/
format_code.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: "Format Rust code w/ clippy and rustfmt then test w/ cargo"
on: push
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose --release
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all --all-targets --all-features -- -D warnings
- name: Run cargo audit
run: cargo audit
- name: Run cargo outdated
run: cargo outdated
- name: Create log file
run: touch bleulog.log
- name: Run cargo test
run: cargo test --quiet