run on pr
@@ -126,6 +126,15 @@ jobs:
)
echo "::set-output name=cloud-components::$CRON_COMPONENTS"
+ - name: Specify components requiring cloud resources to run and use terraform
+ id: terraform-components
+ run: |
+ TERRAFORM_COMPONENTS=$(yq -I0 --tojson eval - << EOF
+ EOF
+ )
+ echo $TERRAFORM_COMPONENTS
+ echo "::set-output name=terraform-components::$TERRAFORM_COMPONENTS"
+
- name: Create PR comment
if: env.PR_NUMBER != ''
uses: artursouza/sticky-pull-request-comment@v2.2.0
@@ -143,6 +152,7 @@ jobs:
outputs:
pr-components: ${{ steps.pr-components.outputs.pr-components }}
cloud-components: ${{ steps.cloud-components.outputs.cloud-components }}
+ terraform-components: ${{ steps.terraform-components.outputs.terraform-components }}
certification:
name: ${{ matrix.component }} certification
@@ -158,7 +168,9 @@ jobs:
fail-fast: false # Keep running even if one component fails
matrix:
component: ${{ fromJson(needs.generate-matrix.outputs.pr-components) }}
- include: ${{ fromJson(needs.generate-matrix.outputs.cloud-components) }}
+ include:
+ - ${{ fromJson(needs.generate-matrix.outputs.cloud-components) }}
+ - ${{ fromJson(needs.generate-matrix.outputs.terraform-components) }}
steps:
- name: Set default payload repo and ref
@@ -421,7 +433,8 @@ jobs:
script: |
const prComponents = ('${{ needs.generate-matrix.outputs.pr-components }}' && JSON.parse('${{ needs.generate-matrix.outputs.pr-components }}')) || []
const cloudComponents = ('${{ needs.generate-matrix.outputs.cloud-components }}' && JSON.parse('${{ needs.generate-matrix.outputs.cloud-components }}')) || []
- const allComponents = [...prComponents, ...cloudComponents]
+ const terraformComponents = ('${{ needs.generate-matrix.outputs.terraform-components }}' && JSON.parse('${{ needs.generate-matrix.outputs.terraform-components }}')) || []
+ const allComponents = [...prComponents, ...cloudComponents, ...terraformComponents]
const basePath = '${{ steps.testresults.outputs.download-path }}'
const testType = 'certification'
