File tree Expand file tree Collapse file tree 4 files changed +23
-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 +23
-10
lines changed Original file line number Diff line number Diff line change 7
7
types : [ 'opened', 'synchronize' ]
8
8
paths :
9
9
- ' .github/**'
10
- - ' .github/workflows/**'
11
10
- ' quickstarts/**'
11
+ - ' tech-solution/**'
12
12
13
13
jobs :
14
14
terraform-fmt :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : actions/checkout@v4
18
-
19
18
- uses : hashicorp/setup-terraform@v3
20
-
21
19
- name : Terraform fmt
22
20
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
24
24
25
25
26
26
terraform-validate :
@@ -36,13 +36,13 @@ jobs:
36
36
with :
37
37
dir_names : " true"
38
38
separator : " ,"
39
- files : " quickstarts/* "
39
+ files : " **/*.tf "
40
40
dir_names_max_depth : 3
41
41
- name : pr-check
42
42
run : |
43
43
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
44
44
if [ -z "$CHANGED_FOLDERS" ]; then
45
- echo "No changed quickstarts found"
45
+ echo "No changed terraform code found"
46
46
exit 0
47
47
fi
48
48
54
54
terraform -chdir=$f init -upgrade
55
55
terraform -chdir=$f validate
56
56
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."
57
+ echo -e "\033[31m[ERROR]\033[0m: Some terraform codes contain errors, and please running terraform validate command before pushing."
58
58
exit 1
59
59
fi
60
60
done
80
80
with :
81
81
dir_names : " true"
82
82
separator : " ,"
83
- files : " quickstarts/* "
83
+ files : " **/*.tf "
84
84
dir_names_max_depth : 3
85
85
- name : set id
86
86
id : set-job-id
98
98
run : |
99
99
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
100
100
if [ -z "$CHANGED_FOLDERS" ]; then
101
- echo "No changed quickstarts found"
101
+ echo "No changed terraform code found"
102
102
exit 0
103
103
fi
104
104
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 1
1
variable "name" {
2
- default = " terraform-example "
2
+ default = " terraform-example1 "
3
3
}
4
4
5
5
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