Skip to content

Rename validation workflow #3

Rename validation workflow

Rename validation workflow #3

Workflow file for this run

---
name: "Validate Ansible code"
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
paths:
- '**.yml'
- '**.yaml'
pull_request:
branches: ["main", "release/**"]
jobs:
changelog:
uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
if: github.event_name == 'pull_request'
ansible-lint:
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
sanity:
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
# unit-galaxy:
# uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
#
# integration:
# uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
#
all_green:
if: ${{ always() }}
needs:
- changelog
- sanity
# - integration
# - unit-galaxy
- ansible-lint
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert 'failure' not in set([
'${{ needs.changelog.result }}',
'${{ needs.sanity.result }}',
'${{ needs.ansible-lint.result }}' ])"
# '${{ needs.integration.result }}',
# '${{ needs.unit-galaxy.result }}',