-
Notifications
You must be signed in to change notification settings - Fork 178
41 lines (38 loc) · 1.2 KB
/
examples.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
name: Examples Checks
# Runs terraform linting and validation commands when examples are modified. Triggered in pull requests and merged commits to master.
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
AWS_DEFAULT_REGION: us-west-2
MONGODB_ATLAS_ENABLE_PREVIEW: "true"
jobs:
tf-validate:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8
with:
terraform_version: ${{ vars.TF_VERSION_LATEST }}
terraform_wrapper: false
- name: tf-validate
run: make tools tf-validate
tflint:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: 'go.mod'
- name: tflint
run: |
echo "::add-matcher::.github/tflint-matcher.json"
make tools tflint