-
-
Notifications
You must be signed in to change notification settings - Fork 150
56 lines (48 loc) · 1.07 KB
/
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
49
50
51
52
53
54
55
56
---
name: Lint Jobs
on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel
jobs:
rust-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Run cargo check
run: cargo check
- name: Run rustfmt
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy --all-features
env:
RUSTFLAGS: -D warnings
changelog-lint:
name: Changelog Lint
runs-on: ubuntu-latest
steps:
- name: Markdown Linting Action
uses: avto-dev/markdown-lint@v1
with:
rules: /lint/rules/changelog.js
config: --config /lint/config/changelog.yml
args: 'CHANGELOG.md'
docs-lint:
name: Docs Lint
runs-on: ubuntu-latest
steps:
- name: Markdown Linting Action
uses: avto-dev/markdown-lint@v1
with:
args: '**.md'
ignore: 'CHANGELOG.md'