generated from nicholaswilde/docker-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 988 Bytes
/
lint.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
42
43
---
name: lint
'on':
pull_request:
push:
branches:
- main
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2.3.4
- name: Hadolint Action
# You may pin to the exact commit or the version.
uses: brpaz/hadolint-action@v1.5.0
with:
# The path to the Dockerfile to lint
dockerfile: Dockerfile # optional, default is Dockerfile
yamllint:
name: Yamllint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2.3.4
- name: Set up Python 3.
uses: actions/setup-python@v2.2.2
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install yamllint
- name: Lint all the YAMLs.
run: yamllint .