blob: 48af6619f6a81a133a0d99cdbaf0c4b78d3c8424 (
plain)
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
|
name: โ๏ธ Lint
on: [pull_request]
jobs:
yamllint:
name: ๐ถ YAML
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: ๐งน YAML Lint
run: |
# return non-zero exit code on warnings
yamllint --strict .
markdownlint:
name: ๐ธ Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ๐ Use Node.js
uses: actions/[email protected]
with:
node-version: '12.x'
- run: npm install -g [email protected]
- run: markdownlint '**/*.md'
trailing-whitespace:
name: ๐ Trailing whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ๐งน Check for trailing whitespace
run: |
cd test || exit
sh ./check-for-trailing-whitespace.sh || exit 1
|