-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 822 Bytes
/
check.yml
File metadata and controls
31 lines (31 loc) · 822 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
31
name:
check
on:
pull_request:
branches:
main
permissions:
contents: read
jobs:
build:
name: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
# - name: Install system dependencies
# run:
# sudo apt-get update
- name: Install clippy
run:
rustup component add clippy
- name: Check formatting
run:
cargo fmt --all --check
- name: Check
run: |
cargo clippy --release --features https -- -D warnings
cargo clippy -- -D warnings