Skip to content

Commit

Permalink
Merge pull request nozaq#5 from nozaq/upgrade-actions
Browse files Browse the repository at this point in the history
chore: upgrade terraform-github-actions to 0.6.1
  • Loading branch information
nozaq authored Nov 16, 2019
2 parents 5266eb1 + 544d170 commit b875da8
Showing 1 changed file with 41 additions and 16 deletions.
57 changes: 41 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1.0.0
uses: actions/checkout@master

- name: terraform fmt
uses: hashicorp/terraform-github-actions/[email protected]
- name: 'Terraform Format'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.15
tf_actions_subcommand: 'fmt'
tf_actions_working_dir: '.'
tf_actions_comment: true
env:
TF_ACTION_WORKING_DIR: "."
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

validate-examples:
name: Validate examples
Expand All @@ -21,22 +26,42 @@ jobs:
- name: Checkout
uses: actions/checkout@master

- name: terraform init - examples/simple-nodejs
uses: hashicorp/terraform-github-actions/[email protected]
- name: 'Terraform Init - examples/simple-nodejs'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.15
tf_actions_subcommand: 'init'
tf_actions_working_dir: './examples/simple-nodejs'
tf_actions_comment: true
env:
TF_ACTION_WORKING_DIR: "./examples/simple-nodejs"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: terraform validate - examples/simple-nodejs
uses: hashicorp/terraform-github-actions/[email protected]
- name: 'Terraform Validate - examples/simple-nodejs'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.15
tf_actions_subcommand: 'validate'
tf_actions_working_dir: './examples/simple-nodejs'
tf_actions_comment: true
env:
TF_ACTION_WORKING_DIR: "./examples/simple-nodejs"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: terraform init - examples/simple-py
uses: hashicorp/terraform-github-actions/[email protected]
- name: 'Terraform Init - examples/simple-py'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.15
tf_actions_subcommand: 'init'
tf_actions_working_dir: './examples/simple-py'
tf_actions_comment: true
env:
TF_ACTION_WORKING_DIR: "./examples/simple-py"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: terraform validate - examples/simple-py
uses: hashicorp/terraform-github-actions/[email protected]
- name: 'Terraform Validate - examples/simple-py'
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: 0.12.15
tf_actions_subcommand: 'validate'
tf_actions_working_dir: './examples/simple-py'
tf_actions_comment: true
env:
TF_ACTION_WORKING_DIR: "./examples/simple-py"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b875da8

Please sign in to comment.