File tree 5 files changed +73
-15
lines changed
5 files changed +73
-15
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,8 @@ README.md
2
2
.github/workflows/*
3
3
.terraform-docs.yml
4
4
docs/20-badges.md
5
+ docs/assets/logo.svg
5
6
*.tf
7
+ test/*
8
+ go.mod
9
+ go.sum
Original file line number Diff line number Diff line change
1
+ ---
2
+ # #############################
3
+ # # Dependabot configuration ##
4
+ # #############################
5
+
6
+ #
7
+ # Documentation:
8
+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
9
+ #
10
+
11
+ version : 2
12
+ updates :
13
+ # Maintain dependencies for GitHub Actions
14
+ - package-ecosystem : " github-actions"
15
+ directory : " /"
16
+ schedule :
17
+ interval : " daily"
18
+ open-pull-requests-limit : 0
19
+
20
+ # Maintain dependencies for Terraform Providers
21
+ - package-ecosystem : " terraform"
22
+ directory : " /"
23
+ schedule :
24
+ interval : " daily"
25
+ open-pull-requests-limit : 0
26
+
27
+ # Maintain dependencies for Golang
28
+ - package-ecosystem : " gomod"
29
+ directory : " /"
30
+ schedule :
31
+ interval : " daily"
32
+ open-pull-requests-limit : 0
Original file line number Diff line number Diff line change 5
5
6
6
...
7
7
8
- ## How this PR fixes it
9
-
10
- ...
11
-
12
8
## Readiness Checklist
13
9
14
10
### Author/Contributor
Original file line number Diff line number Diff line change 1
- name : Test
1
+ ---
2
+ # ##############
3
+ # # Run tests ##
4
+ # ##############
5
+
6
+ #
7
+ # Documentation:
8
+ # https://help.github.com/en/articles/workflow-syntax-for-github-actions
9
+ #
2
10
11
+ name : Test
3
12
on :
4
13
pull_request :
5
- workflow_dispatch :
6
14
push :
7
15
branches : [ main ]
8
16
9
- permissions :
10
- id-token : write
11
- contents : read
12
-
17
+ # #########################
18
+ # Prevent duplicate jobs #
19
+ # #########################
13
20
concurrency :
14
21
group : ${{ github.repository }}
15
22
cancel-in-progress : false
16
23
24
+ permissions :
25
+ id-token : write
26
+ contents : read
27
+
28
+ # ##############
29
+ # Run the job #
30
+ # ##############
17
31
jobs :
18
- test :
19
- name : Terraform Tests
32
+ terratest :
33
+ name : Terratest
20
34
runs-on : ubuntu-latest
21
35
steps :
36
+ # ###########################
37
+ # Checkout the source code #
38
+ # ###########################
22
39
- name : Checkout
23
40
uses : actions/checkout@v3
24
41
@@ -32,11 +49,18 @@ jobs:
32
49
aws-region : ${{ vars.AWS_TESTING_REGION }}
33
50
mask-aws-account-id : false
34
51
52
+ # ###############
53
+ # Setup Golang #
54
+ # ###############
35
55
- name : Set up Go
36
56
uses : actions/setup-go@v4
37
57
with :
38
58
go-version-file : ' go.mod'
39
59
60
+ # ############
61
+ # Run tests #
62
+ # ############
40
63
- name : Run Tests
64
+ timeout-minutes : 30
41
65
working-directory : test
42
- run : go test -v -timeout 30m
66
+ run : go test -v
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.76 .0
3
+ rev : v1.80 .0
4
4
hooks :
5
5
- id : terraform_docs
6
6
- id : terraform_fmt
7
7
- id : terraform_validate
8
+ args :
9
+ - --hook-config=--retry-once-with-cleanup=true
8
10
exclude : ' ^[^/]+$'
9
11
- id : terraform_tflint
10
12
exclude : ^examples/
11
13
12
14
- repo : https://github.com/pre-commit/pre-commit-hooks
13
- rev : v4.3 .0
15
+ rev : v4.4 .0
14
16
hooks :
15
17
- id : trailing-whitespace
16
18
- id : end-of-file-fixer
You can’t perform that action at this time.
0 commit comments