-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 865 Bytes
/
lint.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
# Syntax reference:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
name: Lint
permissions: read-all
defaults:
run:
shell: bash
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
env:
CARGO_TERM_COLOR: always
jobs:
testing:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Clippy
run: |
cargo clippy -- -Dwarnings
- name: Docs
run: |
RUSTDOCFLAGS='-D warnings' cargo doc
- name: Lockfile
run: |
cargo update --locked --workspace
- name: Rust
run: |
cargo fmt -- --check