Skip to content

Update community.general to 13.1.0 #5081

Update community.general to 13.1.0

Update community.general to 13.1.0 #5081

Workflow file for this run

name: Test Azimuth deployment
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
branches:
- main
# Use the head ref for workflow concurrency, with cancellation
# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
# This job exists so that PRs from outside the main repo are rejected
fail_on_remote:
name: Fail on Remote
permissions: {}
runs-on: ubuntu-latest
steps:
- name: PR must be from a branch in the azimuth-cloud/ansible-collection-azimuth-ops repo
run: |
if [ "${{ github.repository }}" != "azimuth-cloud/ansible-collection-azimuth-ops" ]; then
exit 1
fi
lint:
name: Lint
permissions:
contents: read
packages: read
statuses: write
uses: ./.github/workflows/lint.yml
needs:
- fail_on_remote
files_changed:
name: Detect Files Changed
permissions:
contents: read
needs:
- fail_on_remote
- lint
runs-on: ubuntu-latest
# Map a step output to a job output, this allows other jobs to be gated on the filter results
outputs:
paths_singlenode: ${{ steps.filter_singlenode.outputs.paths }}
paths_ha: ${{ steps.filter_ha.outputs.paths }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Paths Filter (Singlenode)
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter_singlenode
with:
# Default predicate is 'some' which gives a match if any one filter matches.
# Change the predicate to 'every' so the file has to match all filters,
# to model 'paths-ignore' we match only if we've excluded all unwanted files.
predicate-quantifier: 'every'
filters: |
paths:
# Ignore any changes that are not actually code changes
- "!.gitignore"
- "!CODEOWNERS"
- "!LICENSE"
- "!README.md"
- "!.github/release.yml"
- "!.github/workflows/update-dependencies.yml"
# Ignore any changes that only affect the HA install
- "!playbooks/deploy_capi_mgmt.yml"
- "!playbooks/provision_capi_mgmt.yml"
- "!playbooks/restore.yml"
- "!roles/capi_cluster/**"
- "!roles/velero/**"
- name: Paths Filter (HA)
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter_ha
with:
filters: |
paths:
# Include any changes that only affect the HA install
- "playbooks/deploy_capi_mgmt.yml"
- "playbooks/provision_capi_mgmt.yml"
- "playbooks/restore.yml"
- "roles/capi_cluster/**"
- "roles/velero/**"
run_azimuth_tests:
# Use the output of the above filter to check if the files listed under "paths" have changed.
# We can negate this check to run an alternative job,
# we can add additional filters like "paths" and action on those.
# Example: https://github.com/getsentry/sentry/blob/2ebe01feab863d89aa7564e6d243b6d80c230ddc/.github/workflows/backend.yml#L36
name: Run Azimuth Tests
permissions:
contents: read
needs:
- files_changed
if: |
needs.files_changed.outputs.paths_singlenode == 'true' ||
needs.files_changed.outputs.paths_ha == 'true'
uses: ./.github/workflows/test-azimuth.yml
with:
install-mode: ${{ needs.files_changed.outputs.paths_ha == 'true' && 'ha' || 'singlenode' }}
secrets:
OS_CLOUDS: ${{ secrets.OS_CLOUDS }}