-
-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (35 loc) · 961 Bytes
/
quality-checks.yaml
File metadata and controls
39 lines (35 loc) · 961 Bytes
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
name: Quality checks
on: [ push ]
jobs:
validate-shell:
name: Validate shell
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
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 --source-path=SCRIPTDIR
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@v4
- name: Setup node
uses: ./.github/actions/setup-node
- name: Install dependencies
run: npm ci
- name: Lint
run: ${{ matrix.lint-command }}