-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (54 loc) · 1.28 KB
/
lint.yaml
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
name: lint
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: tools/format.sh -- --check
clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./tools/ci/github/setup
- run: tools/lint.sh -- -D warnings
spell_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@main
with:
files: "**/*.{feature,md,pen,rs,sh}"
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: homebrew/actions/setup-homebrew@master
- run: tools/ci/github/setup.sh
- run: tools/document/build.sh
- uses: raviqqe/markdown-link-check@v1
dependabot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: tools/update_dependabot.sh
- run: git diff --exit-code
lint:
needs:
- format
- clippy
- spell_check
- readme
- dependabot
if: always()
runs-on: ubuntu-latest
steps:
- run: for result in ${{ join(needs.*.result, ' ') }}; do [ $result = success ]; done