Skip to content

Commit 3b38087

Browse files
committed
Make gate-lint-ansible-roles work in nparallel.
This should help reduce CI time.
1 parent 872645f commit 3b38087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/gate-lint-ansible-roles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
- name: Set git safe directory
2929
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
3030
- name: Lint Ansible Roles
31-
run: ansible-lint -x 204 -x experimental -x command-instead-of-module ./build/ansible_roles/*
31+
run: find ./build/ansible_roles -mindepth 1 -maxdepth 1 -type d | xargs -P $(nproc) -I {} ansible-lint -x 204 -x experimental -x command-instead-of-module {}

0 commit comments

Comments
 (0)