-
Notifications
You must be signed in to change notification settings - Fork 307
37 lines (28 loc) · 1012 Bytes
/
test-terraform.yml
File metadata and controls
37 lines (28 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test Terraform
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Terraform
uses: hashicorp/[email protected]
- name: Init - Playground
working-directory: './terraform/alicloud/playground'
run: terraform init
- name: Validate - Playground
working-directory: './terraform/alicloud/playground'
run: terraform validate
- name: Verify Format - Playground
working-directory: './terraform/alicloud/playground'
run: terraform fmt -diff -check
- name: Init - Cluster
working-directory: './terraform/alicloud/cluster'
run: terraform init
- name: Validate - Cluster
working-directory: './terraform/alicloud/cluster'
run: terraform validate
- name: Verify Format - Cluster
working-directory: './terraform/alicloud/cluster'
run: terraform fmt -diff -check