forked from zcash/zcash
-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (78 loc) · 2.41 KB
/
lints.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Lints
# We only run these lints on trial-merges of PRs to reduce noise.
on: pull_request
jobs:
commit-script-check:
name: Scripted diffs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Check scripted diffs
run: ./test/lint/commit-script-check.sh ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
general-lints:
name: General
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo python3 -m pip install yq
- name: Cargo patches
run: ./test/lint/lint-cargo-patches.sh
if: always()
- name: Include guards
run: ./test/lint/lint-include-guards.sh
if: always()
- name: Includes
run: ./test/lint/lint-includes.sh
if: always()
- name: Locale dependence
run: ./test/lint/lint-locale-dependence.sh
if: always()
continue-on-error: true # Temporary until we get this passing
- name: Shebang
run: ./test/lint/lint-shebang.sh
if: always()
continue-on-error: true # Temporary until we get this passing
- name: Shell locale
run: ./test/lint/lint-shell-locale.sh
if: always()
continue-on-error: true # Temporary until we get this passing
- name: Shellcheck
run: ./test/lint/lint-shell.sh
if: always()
- name: Whitespace
run: ./test/lint/lint-whitespace.sh
if: always()
python:
name: Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo python3 -m pip install pyflakes
- name: Pyflakes
run: pyflakes qa src zcutil
if: always()
- name: UTF-8 encoding
run: ./test/lint/lint-python-utf8-encoding.sh
if: always()
rust-clippy:
name: Clippy (MSRV)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
name: Clippy (MSRV)
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -- -D warnings
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo fmt -- --check