-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (58 loc) · 1.66 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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Linting
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
statuses: write
jobs:
yamllint:
runs-on: ubuntu-22.04
name: Run yamllint
steps:
- name: Check out code
uses: actions/[email protected]
- name: Get yamllint config file from dotfiles
env:
# yamllint disable-line rule:line-length
CONFIG_FILE: https://raw.githubusercontent.com/bewuethr/dotfiles/master/.config/yamllint/config
run: curl "$CONFIG_FILE" > .github/workflows/yamllintconfig
- name: Run YAML linter
uses: bewuethr/yamllint-action@v1
with:
config-file: .github/workflows/yamllintconfig
markdownlint:
runs-on: ubuntu-22.04
name: Run markdownlint
steps:
- name: Check out code
uses: actions/[email protected]
- name: Get mdl style file from dotfiles
env:
# yamllint disable-line rule:line-length
STYLE_FILE: https://raw.githubusercontent.com/bewuethr/dotfiles/master/.config/mdl/style.rb
run: curl "$STYLE_FILE" > .github/workflows/style.rb
- name: Run Markdown linter
uses: ./.
with:
style-file: .github/workflows/style.rb
shellcheck:
runs-on: ubuntu-22.04
name: Run ShellCheck
steps:
- name: Check out code
uses: actions/[email protected]
- name: Run ShellCheck
uses: bewuethr/shellcheck-action@v2
lint:
name: Run super-linter job
uses: bewuethr/workflows/.github/workflows/linter.yml@main
permissions:
contents: read
packages: read
statuses: write
with:
validate-dockerfile: true