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 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,15 @@ jobs:
36
36
with :
37
37
dir_names : " true"
38
38
separator : " ,"
39
- files : " quickstarts/*"
39
+ files : |
40
+ quickstarts/*
41
+ tech-solution/*
40
42
dir_names_max_depth : 3
41
43
- name : pr-check
42
44
run : |
43
45
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
44
46
if [ -z "$CHANGED_FOLDERS" ]; then
45
- echo "No changed quickstarts found"
47
+ echo "No changed terraform code found"
46
48
exit 0
47
49
fi
48
50
54
56
terraform -chdir=$f init -upgrade
55
57
terraform -chdir=$f validate
56
58
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."
58
60
exit 1
59
61
fi
60
62
done
80
82
with :
81
83
dir_names : " true"
82
84
separator : " ,"
83
- files : " quickstarts/*"
85
+ files : |
86
+ quickstarts/*
87
+ tech-solution/*
84
88
dir_names_max_depth : 3
85
89
- name : set id
86
90
id : set-job-id
98
102
run : |
99
103
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
100
104
if [ -z "$CHANGED_FOLDERS" ]; then
101
- echo "No changed quickstarts found"
105
+ echo "No changed terraform code found"
102
106
exit 0
103
107
fi
104
108
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