A condition is added to the code to test operator input: Approved or … #176
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: Terraform CI | |
on: | |
push: | |
merge_group: | |
types: [checks_requested] | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: ^1.1 | |
- name: Run Terraform Tests - Azure | |
working-directory: azure/terraform | |
run: | | |
terraform init | |
terraform validate | |
terraform fmt -recursive -check | |
- name: Run Terraform Tests - GCP | |
working-directory: gcp/terraform | |
run: | | |
terraform init | |
terraform validate | |
terraform fmt -recursive -check | |
- name: Run Terraform Tests - AWS | |
working-directory: gcp/terraform | |
run: | | |
terraform init | |
terraform validate | |
terraform fmt -recursive -check | |
- name: Create Awesome Badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_TOKEN }} | |
gistID: bfa95d2cf0275608b4b10616318c6361 | |
filename: test.json | |
label: Contributors | |
message: Total number of contributors | |
color: orange |