Skip to content

Commit 728c283

Browse files
committed
feat: update terraform to version 0.13
BREAKING CHANGE: terraform has been updated to version 0.13
1 parent d827cf7 commit 728c283

File tree

9 files changed

+77
-88
lines changed

9 files changed

+77
-88
lines changed

.github/workflows/auto-readme.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Generate Readme
22

33
on:
4-
# Open a PR to update README on merge to master (as necessary)
4+
# Open a PR to update README on merge to main (as necessary)
55
push:
66
branches:
7-
- master
7+
- main
88

99
# Update README nightly
1010
schedule:
@@ -14,13 +14,12 @@ jobs:
1414
update:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v2
17+
- uses: actions/checkout@v2
1918

2019
- name: readme/update
2120
shell: bash
2221
env:
23-
GITHUB_TOKEN: "${{ secrets.GITHUB_BOT_TOKEN }}"
22+
GITHUB_TOKEN: "${{ secrets.GH_BOT_TOKEN }}"
2423
run: |
2524
make init
2625
make readme/deps
@@ -29,12 +28,15 @@ jobs:
2928
- name: Create Pull Request
3029
uses: peter-evans/create-pull-request@v3
3130
with:
32-
labels: automated pr
33-
token: ${{ secrets.GITHUB_BOT_TOKEN }}
31+
labels: |
32+
automated pr
33+
readme
34+
token: ${{ secrets.GH_BOT_TOKEN }}
3435
commit-message: "docs(README): auto update all sections"
3536
title: Automatic Update of README.md
3637
body: |-
3738
This is an auto-generated PR which updates the `README.md` from the `README.yaml`
3839
using the [`cloudposse/build-harness`](https://github.com/cloudposse/build-harness).
3940
branch: github-actions/auto-readme
4041
branch-suffix: timestamp
42+
base: main

.github/workflows/code-checks.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Code checks and tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: hashicorp/setup-terraform@v1
18+
with:
19+
terraform_version: 0.13.5
20+
21+
- name: Run Terraform format
22+
id: fmt
23+
run: terraform fmt -check
24+
continue-on-error: true
25+
26+
- name: Run Terraform init
27+
id: init
28+
run: terraform init -backend=false ./tests
29+
30+
- name: Run Terraform validate
31+
id: validate
32+
run: terraform validate ./tests
33+
34+
- name: Run Shellcheck
35+
uses: reviewdog/action-shellcheck@v1
36+
with:
37+
github_token: ${{ secrets.GH_BOT_TOKEN }}
38+
reporter: github-pr-review
39+

.github/workflows/lint.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
name: Release
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows:
6+
- "Code checks and tests"
57
branches:
6-
- master
8+
- main
9+
types:
10+
- completed
711

812
jobs:
913
release:
10-
name: release
14+
name: Release
1115
runs-on: ubuntu-latest
1216
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
17+
- uses: actions/checkout@v2
1518

16-
- name: Semantic Release
17-
uses: cycjimmy/semantic-release-action@master
19+
- name: Run Semantic Release
20+
uses: cycjimmy/semantic-release-action@v2
1821
id: semantic
1922
with:
20-
branch: master
23+
branch: main
2124
extra_plugins: |
2225
@semantic-release/git
2326
@semantic-release/changelog
2427
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/reviewdog.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.releaserc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
branch: master
2+
branch: main
33

44
plugins:
55
- "@semantic-release/commit-analyzer"

tests/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
terraform {
2-
required_version = ">= 0.12"
3-
4-
backend "local" {}
5-
}
6-
71
provider "aws" {
82
region = "eu-central-1"
93
}

tests/versions.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../versions.tf

versions.tf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
terraform {
2-
required_version = "~> 0.12.0"
2+
required_version = ">= 0.13"
3+
required_providers {
4+
archive = {
5+
source = "hashicorp/archive"
6+
}
7+
aws = {
8+
source = "hashicorp/aws"
9+
}
10+
null = {
11+
source = "hashicorp/null"
12+
}
13+
random = {
14+
source = "hashicorp/random"
15+
}
16+
}
317
}

0 commit comments

Comments
 (0)