77jobs :
88 terraform :
99 name : ' Terraform'
10+ strategy :
11+ matrix :
12+ terraform : [0.12.31, 0.13.7, 0.14.11, 0.15.5, 1.0.11, 1.1.9, 1.2.9, 1.3.8]
1013 runs-on : ubuntu-latest
1114 steps :
1215 - name : ' Checkout'
13- uses : actions/checkout@master
16+ uses : actions/checkout@v3
1417
1518 - name : ' Terraform Format'
16- uses : hashicorp/terraform-github-actions@master
19+ uses : hashicorp/setup-terraform@v2
1720 with :
18- tf_actions_version : 0.12.24
19- tf_actions_subcommand : ' fmt'
20- env :
21- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22- - name : ' Terraform Init'
23- uses : hashicorp/terraform-github-actions@master
24- with :
25- tf_actions_version : 0.12.24
26- tf_actions_subcommand : ' init'
27- env :
28- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+ terraform_version : ${{ matrix.terraform }}
22+
23+ - run : |
24+ terraform fmt
25+ terraform init
2926
3027 - name : ' Inject provider configs for validate command'
3128 run : |
@@ -34,27 +31,24 @@ jobs:
3431 region = "us-east-2"
3532 }
3633 EOF
37- - name : ' Terraform Validate'
38- uses : hashicorp/terraform-github-actions@master
39- with :
40- tf_actions_version : 0.12.24
41- tf_actions_subcommand : ' validate'
42- env :
43- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - run : |
36+ terraform validate
37+
4438 release :
4539 if : github.event_name == 'push'
4640 needs : terraform
4741 runs-on : ubuntu-latest
4842
4943 steps :
50- - uses : actions/checkout@v2
44+ - uses : actions/checkout@v3
5145 - name : Semantic Release
5246 id : semantic
53- uses : cycjimmy/semantic-release-action@v2
47+ uses : cycjimmy/semantic-release-action@v3
5448 env :
5549 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5650 with :
57- semantic_version : 17
51+ semantic_version : 19
5852 extra_plugins : |
5953 @semantic-release/changelog
6054 @semantic-release/git
0 commit comments