Sanity checks #1172
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Sanity checks | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests | |
push: | |
pull_request: | |
# Run CI once per day (at 06:00 UTC) | |
# This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version | |
schedule: | |
- cron: '0 6 * * *' | |
env: | |
NAMESPACE: sva | |
COLLECTION_NAME: sentinelone | |
# ANSIBLE_TEST_PREFER_PODMAN: 1 | |
jobs: | |
ansible-lint: | |
uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main | |
sanity: | |
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main | |
all_green: | |
if: ${{ always() }} | |
needs: | |
- ansible-lint | |
- sanity | |
runs-on: ubuntu-latest | |
steps: | |
- run: >- | |
python -c "assert 'failure' not in | |
set([ | |
'${{ needs.sanity.result }}', | |
'${{ needs.ansible-lint.result }}' | |
])" |