Skip to content

Commit

Permalink
psh, who needs loops
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Jan 23, 2025
1 parent 69a44b5 commit 3088b17
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,19 +359,28 @@ jobs:
- name: Upgrade ansible-core
run: python3 -m pip install --upgrade ansible-core

- name: Download coverage artifacts
uses: actions/download-artifact@v3
- name: Download coverage artifacts A to H
uses: actions/download-artifact@v4
with:
path: coverage
name: coverage-a-h

- name: Download coverage artifacts I to P
uses: actions/download-artifact@v4
with:
name: coverage-i-p

- name: Download coverage artifacts Z to Z
uses: actions/download-artifact@v4
with:
name: coverage-r-z0-9

- name: Combine coverage
run: |
make COLLECTION_VERSION=100.100.100-git install_collection
mkdir -p ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage
cd coverage
for i in coverage-*; do
cp -rv $i/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
done
cp -rv coverage-a-h/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
cp -rv coverage-i-p/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
cp -rv coverage-r-z0-9/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
cd ~/.ansible/collections/ansible_collections/awx/awx
ansible-test coverage combine --requirements
ansible-test coverage html
Expand Down

0 comments on commit 3088b17

Please sign in to comment.