Update capi-helm-openstack-cluster to 0.1.2-dev.0.main.63 #120
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: Test Azimuth deployment | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- ready_for_review | |
- reopened | |
branches: | |
- main | |
jobs: | |
# This job exists so that PRs from outside the main repo are rejected | |
fail_on_remote: | |
runs-on: ubuntu-latest | |
steps: | |
- name: PR must be from a branch in the stackhpc/ansible-collection-azimuth-ops repo | |
run: exit ${{ github.repository == 'stackhpc/ansible-collection-azimuth-ops' && '0' || '1' }} | |
# Because of resource constraints, we want to restrict concurrency: | |
# | |
# * Only one active workflow run at a time across all branches, others should be queued | |
# * New workflow runs should cancel any in-progress runs for the same branch only | |
# | |
# The GitHub native concurrency cannot express this, so we use a custom action to queue | |
# This will wait for an available slot until the action times out or is cancelled | |
wait_in_queue: | |
needs: [fail_on_remote] | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for an available slot | |
uses: stackhpc/github-actions/workflow-concurrency@master | |
run_azimuth_tests: | |
needs: [wait_in_queue] | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the configuration repository | |
- name: Set up Azimuth environment | |
uses: stackhpc/azimuth-config/.github/actions/setup@main | |
with: | |
os-clouds: ${{ secrets.OS_CLOUDS }} | |
environment-prefix: ops-ci | |
# Provision Azimuth using the azimuth-ops version under test | |
- name: Provision Azimuth | |
uses: stackhpc/azimuth-config/.github/actions/provision@main | |
with: | |
azimuth-ops-version: ${{ github.event.pull_request.head.sha }} | |
# # Run the tests | |
- name: Run Azimuth tests | |
uses: stackhpc/azimuth-config/.github/actions/test@main | |
# Tear down the environment | |
- name: Destroy Azimuth | |
uses: stackhpc/azimuth-config/.github/actions/destroy@main | |
if: ${{ always() }} |