forked from undergroundwires/bump-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 974 Bytes
/
quality-checks.yaml
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
name: Quality checks
on: [ push ]
jobs:
validate-shell:
name: Validate shell
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Install ShellCheck
run: sudo apt-get update -y && sudo apt-get install -y shellcheck
-
name: Lint shell scripts
run: find . -name "*.sh" | xargs shellcheck --external-sources
lint:
name: Validate markdown & yaml files
runs-on: ubuntu-latest
strategy:
matrix:
lint-command:
- npm run lint:yaml
- npm run lint:md:relative-urls
- npm run lint:md
- npm run lint:md:consistency
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies
run: npm ci
- name: Lint
run: ${{ matrix.lint-command }}