-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 853 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
44
45
---
name: Lint
on: # yamllint disable-line rule:truthy
pull_request:
push:
permissions:
contents: read
jobs:
python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python3
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip3 install yamllint
- name: Lint yaml
run: |
yamllint .
shell:
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Differential ShellCheck
uses: redhat-plumbers-in-action/differential-shellcheck@v3
with:
severity: error
token: ${{ secrets.GITHUB_TOKEN }}