2023-08-07 10:49:33 +00:00
|
|
|
---
|
2024-01-30 13:55:26 +00:00
|
|
|
name: "CI"
|
2022-05-25 20:06:16 +00:00
|
|
|
|
|
|
|
concurrency:
|
2023-05-11 12:53:25 +00:00
|
|
|
group: ${{ github.head_ref || github.run_id }}
|
2022-05-25 20:06:16 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-05-11 12:53:25 +00:00
|
|
|
on: # yamllint disable-line rule:truthy
|
2022-05-16 16:52:15 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
workflow_dispatch:
|
2023-05-11 12:53:25 +00:00
|
|
|
schedule:
|
2023-11-30 07:39:48 +00:00
|
|
|
- cron: '0 0 * * *'
|
2022-05-16 16:52:15 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-05-17 18:07:11 +00:00
|
|
|
changelog:
|
2024-01-30 13:55:26 +00:00
|
|
|
uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
|
2023-11-24 06:10:16 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2024-01-30 13:55:26 +00:00
|
|
|
ansible-lint:
|
|
|
|
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
|
2022-05-16 16:52:15 +00:00
|
|
|
sanity:
|
2024-01-30 13:55:26 +00:00
|
|
|
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
|
2022-05-16 16:52:15 +00:00
|
|
|
unit-galaxy:
|
2024-01-30 13:55:26 +00:00
|
|
|
uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
|
|
|
|
integration:
|
|
|
|
uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
|
2022-05-16 16:52:15 +00:00
|
|
|
all_green:
|
2023-11-24 06:10:16 +00:00
|
|
|
if: ${{ always() }}
|
2022-05-16 16:52:15 +00:00
|
|
|
needs:
|
2022-05-17 18:07:11 +00:00
|
|
|
- changelog
|
2022-05-16 16:52:15 +00:00
|
|
|
- sanity
|
|
|
|
- unit-galaxy
|
2024-01-30 13:55:26 +00:00
|
|
|
- ansible-lint
|
|
|
|
- integration
|
2022-05-16 16:52:15 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: >-
|
2023-11-24 06:11:23 +00:00
|
|
|
python -c "assert 'failure' not in
|
|
|
|
set([
|
2022-05-17 18:07:11 +00:00
|
|
|
'${{ needs.changelog.result }}',
|
2023-11-30 06:58:27 +00:00
|
|
|
'${{ needs.integration.result }}',
|
2022-05-16 16:52:15 +00:00
|
|
|
'${{ needs.sanity.result }}',
|
2024-01-30 13:55:26 +00:00
|
|
|
'${{ needs.unit-galaxy.result }}',
|
|
|
|
'${{ needs.ansible-lint.result }}'
|
2023-11-24 06:11:23 +00:00
|
|
|
])"
|