Skip to content

Commit 64bdbf8

Browse files
authored
Merge branch 'main' into kassianh/docs/correct-gettingstarted-version
2 parents c3998e0 + b4653e6 commit 64bdbf8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,43 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: terraform-github-repository
13+
cancel-in-progress: false
14+
1115
jobs:
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 }}

0 commit comments

Comments
 (0)