File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
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 }}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ Most basic usage creating a new private github repository.
8383``` hcl
8484module "repository" {
8585 source = "mineiros-io/repository/github"
86- version = "~> 0.13 .0"
86+ version = "~> 0.14 .0"
8787
8888 name = "terraform-github-repository"
8989 license_template = "apache-2.0"
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ section {
8989 ```hcl
9090 module "repository" {
9191 source = "mineiros-io/repository/github"
92- version = "~> 0.13 .0"
92+ version = "~> 0.14 .0"
9393
9494 name = "terraform-github-repository"
9595 license_template = "apache-2.0"
You can’t perform that action at this time.
0 commit comments