-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.17 KB
/
main.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
40
41
42
43
name: Linting
on: [push, pull_request]
jobs:
yamllint:
name: YamlLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Setup Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install YamlLint
run: pip install --upgrade yamllint
- name: YamlLint
run: |
find . -type f \( -iname "*.yaml" -o -iname "*.yml" \) -print0 | xargs -0 -r yamllint
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
- name: ShellCheck
run: |
find . -type f \( -iname "setup" -o -iname "*.bash" -o -iname "*.sh" \) -print0 | xargs -0 -r shellcheck
bash_set_error:
name: Set -e/+e Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Check set -e/+e
run: ./.check_set-e.bash