-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 888 Bytes
/
ci.yaml
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
name: Terraform CI
on:
- push
- pull_request
jobs:
matrixify:
name: Matrixify
outputs:
matrix: ${{ steps.search.outputs.matrix }}
runs-on: ubuntu-latest
steps:
- name: Get Changed Terraform directories
id: search
uses: mozilla/tf-actions/matrixify@main
with:
ignore_dir: "**/example**"
- name: Outputs
run: echo "${{ steps.search.outputs.matrix }}"
terraform-ci:
name: Terraform CI on "${{ matrix.directory }}"
if: ${{ fromJSON(needs.matrixify.outputs.matrix).include[0] }}
needs: matrixify
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson(needs.matrixify.outputs.matrix)}}
steps:
- id: terraform-checks
name: Terraform Checks
uses: mozilla/tf-actions/[email protected]
with:
readme_check: "true"
tfpath: ${{ matrix.directory }}