-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.09 KB
/
terraform.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
---
# Copyright (c) NetApp, Inc.
# SPDX-License-Identifier: Apache-2.0
name: "Code Quality: Terraform"
on:
pull_request:
paths:
- 'Terraform/**'
push:
paths:
- 'Terraform/**'
branches:
- main
jobs:
terraform:
name: Terraform
runs-on: ubuntu-latest
strategy:
matrix:
directory:
- 'Terraform/deploy-fsx-ontap/module'
- 'Terraform/deploy-fsx-ontap/standalone-module'
defaults:
run:
working-directory: ${{ matrix.directory }}
steps:
- name: Checkout pull request
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_wrapper: false
terraform_version: 1.6.6
- name: Initialize Terraform
run: terraform init
# - name: Format Terraform configuration
# run: terraform fmt -diff -check -no-color -recursive
- name: Validate Terraform configuration
run: terraform validate