ansible.utils/.github/workflows/test.yml

38 lines
949 B
YAML
Raw Normal View History

name: Test collection
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
changelog:
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
integration:
uses: ansible-network/github_actions/.github/workflows/integration_simple.yml@main
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
all_green:
if: ${{ always() }}
needs:
- changelog
- integration
- sanity
- unit-galaxy
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.changelog.result }}',
'${{ needs.integration.result }}',
'${{ needs.sanity.result }}',
'${{ needs.unit-galaxy.result }}'
]) == {'success'}"