-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 716 Bytes
/
check_code.yml
File metadata and controls
30 lines (28 loc) · 716 Bytes
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
on:
push:
branches:
- 'master'
name: Evaluate codebase
jobs:
code_check:
name: Evaluate codebase
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
profile: minimal
- name: Check codebase is properly formatted
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Check codebase using linter
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings