Skip to content

Commit aa52e17

Browse files
committed
test
1 parent 4820614 commit aa52e17

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.github/workflows/e2e.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77
types: [ 'opened', 'synchronize' ]
88
paths:
99
- '.github/**'
10-
- '.github/workflows/**'
1110
- 'quickstarts/**'
11+
- 'tech-solution/**'
1212

1313
jobs:
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
@@ -54,7 +56,7 @@ jobs:
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
@@ -80,7 +82,9 @@ jobs:
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
@@ -98,7 +102,7 @@ jobs:
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 }}"

quickstarts/VPC/101-vpc-docs-Example/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variable "name" {
2-
default = "terraform-example"
2+
default = "terraform-example1"
33
}
44

55

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)