-
Notifications
You must be signed in to change notification settings - Fork 11
99 lines (97 loc) Β· 2.83 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
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
95
96
97
98
99
name: βοΈ Lint
on: [pull_request]
jobs:
markdownlint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node_version:
- 14
- 16
- 18
- 20
architecture:
- x64
# an extra windows-x86 run:
include:
- os: windows-2019
node_version: 14
architecture: x86
name: πΆ Markdown Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
- run: npm install -g [email protected]
- run: markdownlint '**/*.md' --ignore 'node_modules' --ignore 'venv' --ignore 'packages/**/node_modules/**' --ignore 'languages/**/node_modules/**'
shellcheck:
name: π₯ Shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: π§Ή ShellCheck
uses: ludeeus/action-shellcheck@master
yamllint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7', 'pypy-3.8']
name: πΊ YAML Lint Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: π§Ή YAML Lint
uses: ibiqlik/[email protected]
flake8:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7', 'pypy-3.8']
name: π· Flake8 Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: π§Ή flake8 Lint
uses: py-actions/flake8@v2
with:
ignore: "F821"
max-line-length: "100"
rubocop:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2.1']
name: β Rubocop Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run:
bundle exec rubocop
mdl:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2.1']
name: β Markdownlint Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run:
bundle exec mdl .