ci(ansible): 并行测试本地 collection
yaml / yaml (pull_request) Successful in 16s
ansible / collection-test (pull_request) Successful in 54s
ansible / lint (pull_request) Successful in 2m40s

This commit is contained in:
2026-09-10 17:48:19 +00:00
parent 97021109ac
commit b390565146
+14 -1
View File
@@ -50,6 +50,7 @@ jobs:
- name: ansible-lint - name: ansible-lint
run: | run: |
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
export ANSIBLE_COLLECTIONS_PATH="$PWD/infrastructure/samba-ad/ansible/collections:/root/.ansible/collections"
rc=0 rc=0
for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do
echo "::group::$p" echo "::group::$p"
@@ -58,7 +59,19 @@ jobs:
done done
exit $rc exit $rc
- name: Test repository-local Ansible collection collection-test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Install ansible-core
run: |
python3 -m pip install --user --break-system-packages \
--index-url https://pypi.org/simple --quiet uv==0.11.7
export PATH="$HOME/.local/bin:$PATH"
uv tool install ansible-core --quiet
- name: Run ansible-test
working-directory: infrastructure/samba-ad/ansible/collections/ansible_collections/ddupan/homelab working-directory: infrastructure/samba-ad/ansible/collections/ansible_collections/ddupan/homelab
run: | run: |
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"