Skip to content

Commit 79f85f1

Browse files
authored
Merge pull request #65 from tomodachi/paralellize-pipeline
Run yamllint and ansible lint in paralell
2 parents 922e327 + ddb54ba commit 79f85f1

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ name: Lint Yaml
44
on: [pull_request, workflow_dispatch]
55

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

1111
defaults:
@@ -16,14 +16,19 @@ 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
33+
with:
34+
working_directory: "roles"

0 commit comments

Comments
 (0)