-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.01 KB
/
misc-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
---
name: Lint
on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
pull_request:
branches:
- "main"
jobs:
yaml_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: YAML Lint
uses: docker://cytopia/yamllint
with:
entrypoint: /bin/ash
args: -c "yamllint -f colored $(find . -name '*.yml')"
rst_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: RST Lint
uses: docker://python:latest
with:
entrypoint: /bin/bash
args: -c "pip install restructuredtext-lint && rst-lint --level info *.rst"
shell_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Shell Lint
run: |
sudo apt-get update && sudo apt-get install -y shellcheck
find . -name "*.sh" | xargs -n 1 shellcheck --color=always || true