mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Use upload artifact v4
unique-ify name psh, who needs loops Folder management Extracts into current path
This commit is contained in:
parent
a270b9b474
commit
534c312328
@ -13,7 +13,7 @@ runs:
|
|||||||
docker logs tools_awx_1 > ${{ inputs.log-filename }}
|
docker logs tools_awx_1 > ${{ inputs.log-filename }}
|
||||||
|
|
||||||
- name: Upload AWX logs as artifact
|
- name: Upload AWX logs as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: docker-compose-logs
|
name: docker-compose-logs-${{ inputs.log-filename }}
|
||||||
path: ${{ inputs.log-filename }}
|
path: ${{ inputs.log-filename }}
|
||||||
|
|||||||
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -206,7 +206,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload debug output
|
- name: Upload debug output
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: awx-operator-debug-output
|
name: awx-operator-debug-output
|
||||||
path: ${{ env.DEBUG_OUTPUT_DIR }}
|
path: ${{ env.DEBUG_OUTPUT_DIR }}
|
||||||
@ -328,7 +328,7 @@ jobs:
|
|||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
# Upload coverage report as artifact
|
# Upload coverage report as artifact
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: coverage-${{ matrix.target-regex.name }}
|
name: coverage-${{ matrix.target-regex.name }}
|
||||||
@ -359,19 +359,29 @@ jobs:
|
|||||||
- name: Upgrade ansible-core
|
- name: Upgrade ansible-core
|
||||||
run: python3 -m pip install --upgrade ansible-core
|
run: python3 -m pip install --upgrade ansible-core
|
||||||
|
|
||||||
- name: Download coverage artifacts
|
- name: Download coverage artifacts A to H
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: coverage-a-h
|
||||||
|
path: coverage
|
||||||
|
|
||||||
|
- name: Download coverage artifacts I to P
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: coverage-i-p
|
||||||
|
path: coverage
|
||||||
|
|
||||||
|
- name: Download coverage artifacts Z to Z
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: coverage-r-z0-9
|
||||||
path: coverage
|
path: coverage
|
||||||
|
|
||||||
- name: Combine coverage
|
- name: Combine coverage
|
||||||
run: |
|
run: |
|
||||||
make COLLECTION_VERSION=100.100.100-git install_collection
|
make COLLECTION_VERSION=100.100.100-git install_collection
|
||||||
mkdir -p ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage
|
mkdir -p ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage
|
||||||
cd coverage
|
cp -rv coverage/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
|
||||||
for i in coverage-*; do
|
|
||||||
cp -rv $i/* ~/.ansible/collections/ansible_collections/awx/awx/tests/output/coverage/
|
|
||||||
done
|
|
||||||
cd ~/.ansible/collections/ansible_collections/awx/awx
|
cd ~/.ansible/collections/ansible_collections/awx/awx
|
||||||
ansible-test coverage combine --requirements
|
ansible-test coverage combine --requirements
|
||||||
ansible-test coverage html
|
ansible-test coverage html
|
||||||
@ -424,7 +434,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Upload coverage report as artifact
|
- name: Upload coverage report as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: awx-collection-integration-coverage-html
|
name: awx-collection-integration-coverage-html
|
||||||
path: ~/.ansible/collections/ansible_collections/awx/awx/tests/output/reports/coverage
|
path: ~/.ansible/collections/ansible_collections/awx/awx/tests/output/reports/coverage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user