Skip to content

Commit 6f194a5

Browse files
committed
test
1 parent 4820614 commit 6f194a5

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

.github/workflows/e2e.yml

Lines changed: 9 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,13 @@ jobs:
3636
with:
3737
dir_names: "true"
3838
separator: ","
39-
files: "quickstarts/*"
39+
files: "**/*.tf"
4040
dir_names_max_depth: 3
4141
- name: pr-check
4242
run: |
4343
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
4444
if [ -z "$CHANGED_FOLDERS" ]; then
45-
echo "No changed quickstarts found"
45+
echo "No changed terraform code found"
4646
exit 0
4747
fi
4848
@@ -54,7 +54,7 @@ jobs:
5454
terraform -chdir=$f init -upgrade
5555
terraform -chdir=$f validate
5656
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."
5858
exit 1
5959
fi
6060
done
@@ -80,7 +80,7 @@ jobs:
8080
with:
8181
dir_names: "true"
8282
separator: ","
83-
files: "quickstarts/*"
83+
files: "**/*.tf"
8484
dir_names_max_depth: 3
8585
- name: set id
8686
id: set-job-id
@@ -98,7 +98,7 @@ jobs:
9898
run: |
9999
CHANGED_FOLDERS="${{ steps.changed-files.outputs.all_changed_files }}"
100100
if [ -z "$CHANGED_FOLDERS" ]; then
101-
echo "No changed quickstarts found"
101+
echo "No changed terraform code found"
102102
exit 0
103103
fi
104104
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)