forked from pyrsia/pyrsia
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.51 KB
/
lint-skipped.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
# This implements the workaround described in https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# The rust linting checks are required but due to path filtering
# the jobs are not created at all so we need to manually recreate them
---
name: Linting
on:
push:
pull_request:
paths-ignore: # This should match https://github.com/pyrsia/pyrsia/blob/main/.github/workflows/rust-lint.yml#L4
- .github/workflows/lint.yml
- .github/workflows/.cargo/audit.toml
- '**/*.rs'
- '**/Cargo.toml'
- Cargo.lock
- 'installers/**'
- '**/*.md'
- '**/*.mdx'
jobs:
security-audit:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping security-audit since PR has files from ignore list"
rustfmt:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping rustfmt since PR has files from ignore list"
clippy:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping clippy since PR has files from ignore list"
license-header:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping license-header since PR has files from ignore list"
inclusive-lint:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping inclusive-lint since PR has files from ignore list"
markdown-docs:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping markdown-docs since PR has files from ignore list"