File tree Expand file tree Collapse file tree 4 files changed +27
-10
lines changed
quickstarts/VPC/101-vpc-docs-Example
tech-solution/develop-your-wechat-mini-program-in-10-minutes Expand file tree Collapse file tree 4 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 77 types : [ 'opened', 'synchronize' ]
88 paths :
99 - ' .github/**'
10- - ' .github/workflows/**'
1110 - ' quickstarts/**'
11+ - ' tech-solution/**'
1212
1313jobs :
1414 terraform-fmt :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v4
18-
1918 - uses : hashicorp/setup-terraform@v3
20-
2119 - name : Terraform fmt
2220 id : fmt
23- run : terraform -chdir=quickstarts fmt -check -recursive
21+ run : |
22+ terraform -chdir=quickstarts fmt -check -recursive
23+ terraform -chdir=tech-solution fmt -check -recursive
2424
2525
2626 terraform-validate :
@@ -36,13 +36,15 @@ jobs:
3636 with :
3737 dir_names : " true"
3838 separator : " ,"
39- files : " quickstarts/*"
39+ files : |
40+ quickstarts/*
41+ tech-solution/*
4042 dir_names_max_depth : 3
4143 - name : pr-check
4244 run : |
4345 CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
4446 if [ -z "$CHANGED_FOLDERS" ]; then
45- echo "No changed quickstarts found"
47+ echo "No changed terraform code found"
4648 exit 0
4749 fi
4850
5456 terraform -chdir=$f init -upgrade
5557 terraform -chdir=$f validate
5658 if [[ $? -ne 0 ]]; then
57- echo -e "\033[31m[ERROR]\033[0m: Some quickstarts codes contain errors, and please running terraform validate command before pushing."
59+ echo -e "\033[31m[ERROR]\033[0m: Some terraform codes contain errors, and please running terraform validate command before pushing."
5860 exit 1
5961 fi
6062 done
8082 with :
8183 dir_names : " true"
8284 separator : " ,"
83- files : " quickstarts/*"
85+ files : |
86+ quickstarts/*
87+ tech-solution/*
8488 dir_names_max_depth : 3
8589 - name : set id
8690 id : set-job-id
98102 run : |
99103 CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
100104 if [ -z "$CHANGED_FOLDERS" ]; then
101- echo "No changed quickstarts found"
105+ echo "No changed terraform code found"
102106 exit 0
103107 fi
104108 objectPath="github-action/${{github.repository}}/e2e/Action-${{github.run_number}}-${{github.run_id}}-${{ steps.set-job-id.outputs.jobId }}"
Original file line number Diff line number Diff line change 11variable "name" {
2- default = " terraform-example "
2+ default = " terraform-example1 "
33}
44
55
Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change 1+ variable "name" {
2+ default = " terraform-example1"
3+ }
4+
5+
6+ resource "alicloud_vpc" "default" {
7+ ipv6_isp = " BGP"
8+ description = " test"
9+ cidr_block = " 10.0.0.0/8"
10+ vpc_name = var. name
11+ enable_ipv6 = true
12+ }
You can’t perform that action at this time.
0 commit comments