File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 88 branches :
99 - main
1010
11+ concurrency :
12+ group : terraform-github-repository
13+ cancel-in-progress : false
14+
1115jobs :
1216 pre-commit :
1317 runs-on : ubuntu-latest
1418 name : Static Analysis
1519 steps :
1620 - name : Checkout
1721 uses : actions/checkout@v2
22+
1823 - name : Run pre-commit
1924 run : make test/pre-commit
2025
2126 unit-tests :
27+ needs : pre-commit
2228 runs-on : ubuntu-latest
2329 name : Unit Tests
2430 steps :
2531 - name : Checkout
2632 uses : actions/checkout@v2
33+
34+ - name : Check for Terraform file changes
35+ uses : getsentry/paths-filter@v2
36+ id : changes
37+ with :
38+ token : ${{ github.token }}
39+ filters : |
40+ terraform:
41+ - '**/*.tf'
42+ - '**/*.go'
43+ - 'go.mod'
44+ - 'go.sum'
45+
2746 - name : Run Unit Tests
47+ if : steps.changes.outputs.terraform == 'true'
2848 run : make test/unit-tests
2949 env :
3050 GITHUB_OWNER : ${{ secrets.TEST_GITHUB_ORGANIZATION }}
You can’t perform that action at this time.
0 commit comments