2022-05-16 16:52:15 +00:00
|
|
|
name: Test collection
|
2022-05-25 20:06:16 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-05-16 16:52:15 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-05-17 18:07:11 +00:00
|
|
|
changelog:
|
|
|
|
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
|
2022-05-18 18:06:59 +00:00
|
|
|
integration:
|
|
|
|
uses: ansible-network/github_actions/.github/workflows/integration_simple.yml@main
|
2022-05-16 16:52:15 +00:00
|
|
|
sanity:
|
|
|
|
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
|
|
|
|
unit-galaxy:
|
2022-05-20 14:21:59 +00:00
|
|
|
uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
|
2022-05-16 16:52:15 +00:00
|
|
|
|
|
|
|
all_green:
|
|
|
|
if: ${{ always() }}
|
|
|
|
needs:
|
2022-05-17 18:07:11 +00:00
|
|
|
- changelog
|
2022-05-18 18:06:59 +00:00
|
|
|
- integration
|
2022-05-16 16:52:15 +00:00
|
|
|
- sanity
|
|
|
|
- unit-galaxy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: >-
|
|
|
|
python -c "assert set([
|
2022-05-17 18:07:11 +00:00
|
|
|
'${{ needs.changelog.result }}',
|
2022-05-18 18:06:59 +00:00
|
|
|
'${{ needs.integration.result }}',
|
2022-05-16 16:52:15 +00:00
|
|
|
'${{ needs.sanity.result }}',
|
|
|
|
'${{ needs.unit-galaxy.result }}'
|
|
|
|
]) == {'success'}"
|