Skip to content

Commit

Permalink
refactor: require a terraform version now
Browse files Browse the repository at this point in the history
BREAKING CHANGE: a version action variable is now required.

Terraform is version picky and I don't want to make bumping defaults a chore here.
  • Loading branch information
bcomnes committed Oct 1, 2020
1 parent b5da20c commit 298a802
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm test
- uses: bcomnes/npm-bump@v2.0.1
with:
git_email: 12core@littlstar.com
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: Tests

on: [push]

env:
tf-version: 0.13.4

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
node-version: [14]

steps:
- uses: actions/checkout@v1
Expand All @@ -23,6 +26,8 @@ jobs:
npm test
- name: Install Terraform
uses: little-core-labs/install-terraform@master
with:
version: ${{ env.tf-version }}
- name: Terraform version
run: |
terraform version
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Create a workflow `.yml` file in your repositories `.github/workflows` directory

### Inputs

- `version`: The version of terraform to install. Default: 0.12.21
- `version`: The version of terraform to install. Required.

### Outputs

Expand All @@ -37,7 +37,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install Terraform
uses: little-core-labs/install-terraform@v1
uses: little-core-labs/install-terraform@v2.0.0
with:
version: 0.13.4
- name: Terraform apply
run: |
terraform init
Expand Down
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ runs:
inputs:
version:
description: 'Version of terraform to download'
required: false
default: 0.12.21
required: true
# outputs: none

0 comments on commit 298a802

Please sign in to comment.