Skip to content

Commit f041122

Browse files
committed
Run yamllint and ansible lint in paralell
1 parent 922e327 commit f041122

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [pull_request, workflow_dispatch]
55

66
jobs:
77
lint:
8-
name: lint
8+
name: yaml-lint
99
runs-on: ubuntu-latest
1010

1111
defaults:
@@ -16,14 +16,20 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818

19-
- name: Install linters
20-
run: sudo apt-get update && sudo apt-get install python3-pip --yes --no-install-recommends
21-
22-
- name: Setup ansible-lint and yamllint
23-
run: pip install ansible-lint yamllint
19+
- name: Install yamllint
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install yamllint --yes --no-install-recommends
2423
2524
- name: Run yamllint
2625
run: yamllint .
27-
26+
ansible-lint:
27+
name: Ansible Lint
28+
runs-on: ubuntu-24.04
29+
steps:
30+
- uses: actions/checkout@v6
2831
- name: Run ansible-lint
29-
run: ansible-lint roles/
32+
uses: ansible/ansible-lint@main # or vX.X.X version
33+
# optional (see below):
34+
with:
35+
working_directory: "roles"

0 commit comments

Comments
 (0)