ci(ansible): 并行测试本地 collection
This commit is contained in:
@@ -50,6 +50,7 @@ jobs:
|
||||
- name: ansible-lint
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export ANSIBLE_COLLECTIONS_PATH="$PWD/infrastructure/samba-ad/ansible/collections:/root/.ansible/collections"
|
||||
rc=0
|
||||
for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do
|
||||
echo "::group::$p"
|
||||
@@ -58,7 +59,19 @@ jobs:
|
||||
done
|
||||
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
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user