-
-
Notifications
You must be signed in to change notification settings - Fork 305
39 lines (38 loc) · 935 Bytes
/
linting.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
name: Linting
on: [pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Shellcheck
uses: azohra/shell-linter@latest
with:
severity: "error"
dockerlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
lint: 'hadolint'
failure-threshold: error
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v15
with:
config: '.markdownlint.jsonc'
globs: '**/*.md'
test-build:
runs-on: ubuntu-latest
steps:
- name: Build the Image
uses: docker/build-push-action@v2
with:
push: false