-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 999 Bytes
/
linters.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
---
name: linters
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master" ]
jobs:
ansible-lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@59bcdbae779c639f869cc8e3b223f36692af05c2
with:
micromamba-version: '2.0.5-0'
environment-file: conda.dev.yml
init-shell: bash
post-cleanup: 'all'
- name: "Install role dependencies"
run: ansible-galaxy install -r requirements.yml
shell: micromamba-shell {0}
- name: Check workflow files themselves with ActionLint
run: actionlint
shell: micromamba-shell {0}
- name: Check environment files with YAMLLint
run: >
yamllint
conda.dev.yml
conda.prod.yml
shell: micromamba-shell {0}
- name: Run ansible-lint
run: ansible-lint -c .ansible-lint
shell: micromamba-shell {0}