Skip to content

Update sonobuoy to v0.57.0 #507

Update sonobuoy to v0.57.0

Update sonobuoy to v0.57.0 #507

Workflow file for this run

name: test pr
on:
pull_request_target:
types:
- opened
- synchronize
- ready_for_review
- reopened
branches:
- main
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
# Reusable workflows cannot be used with environments
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#supported-keywords-for-jobs-that-call-a-reusable-workflow
# So we must use a different mechanism for approvals
wait_for_approval:
runs-on: ubuntu-latest
steps:
- name: Wait for approval
uses: stackhpc/github-actions/workflow-approve@master
with:
approvers: mkjpryor
# Explicit approval is only required for PRs from external forks
approval-required: ${{ github.event.pull_request.head.repo.full_name != 'stackhpc/capi-helm-charts' && 'yes' || 'no' }}
lint:
needs: [wait_for_approval]
uses: ./.github/workflows/lint.yaml
with:
ref-under-test: ${{ github.event.pull_request.head.sha }}
ensure_capi_images:
needs: [lint]
uses: ./.github/workflows/ensure-capi-images.yaml
secrets: inherit
with:
ref-under-test: ${{ github.event.pull_request.head.sha }}
test:
needs: [ensure_capi_images]
uses: ./.github/workflows/test.yaml
secrets: inherit
with:
# Pass the images as JSON
images: ${{ toJSON(needs.ensure_capi_images.outputs) }}
# We want to test the code in the PR
ref-under-test: ${{ github.event.pull_request.head.sha }}
# If the PR is in draft, just run a sanity check
# If the PR is in review, run the full test suite
tests-full: ${{ !github.event.pull_request.draft }}