-
Notifications
You must be signed in to change notification settings - Fork 11
96 lines (94 loc) Β· 2.71 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
name: βοΈ Lint
on: [pull_request]
jobs:
markdownlint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node_version:
- 10
- 12
- 14
architecture:
- x64
# an extra windows-x86 run:
include:
- os: windows-2016
node_version: 12
architecture: x86
name: πΆ Markdown Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/[email protected]
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@v2
- name: π§Ή ShellCheck
uses: ludeeus/action-shellcheck@master
yamllint:
name: πΊ YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: π§Ή YAML Lint
uses: ibiqlik/[email protected]
flake8:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['2.7', '3.6', '3.7', '3.8', 'pypy-2.7', 'pypy-3.6', 'pypy-3.7']
name: π· Flake8 Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: π§Ή flake8 Lint
uses: py-actions/flake8@v1
with:
ignore: "F821"
max-line-length: "100"
rubocop:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7']
name: β Rubocop Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rubocop
mdl:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7']
name: β Markdownlint Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec mdl .