Support configuring test environments #206
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 Terraform | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Init - Playground | |
working-directory: './terraform/alicloud/playground' | |
run: terraform init | |
- name: Validate - Playground | |
working-directory: './terraform/alicloud/playground' | |
run: terraform validate | |
- name: Verify Format - Playground | |
working-directory: './terraform/alicloud/playground' | |
run: terraform fmt -diff -check | |
- name: Init - Cluster | |
working-directory: './terraform/alicloud/cluster' | |
run: terraform init | |
- name: Validate - Cluster | |
working-directory: './terraform/alicloud/cluster' | |
run: terraform validate | |
- name: Verify Format - Cluster | |
working-directory: './terraform/alicloud/cluster' | |
run: terraform fmt -diff -check |