name: Verify # Controls when the action will run. on: workflow_call: secrets: IBMCLOUD_API_KEY: required: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: verify: if: ${{ !contains( github.event.pull_request.labels.*.name, 'skip ci' ) }} runs-on: ubuntu-latest container: quay.io/ibmgaragecloud/cli-tools:v0.15 strategy: matrix: testcase: - ocp4_latest fail-fast: false env: HOME: /home/devops # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout uses: actions/checkout@v1 - name: Verify deploy on ${{ matrix.testcase }} uses: cloud-native-toolkit/action-module-verify-deploy@main with: clusterId: ${{ matrix.testcase }} validateDeployScript: .github/scripts/validate-deploy.sh env: TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }} IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }} - name: Verify destroy on ${{ matrix.testcase }} uses: cloud-native-toolkit/action-module-verify-destroy@main if: ${{ always() }} with: clusterId: ${{ matrix.testcase }} env: TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }} IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}