Modernizing many things
- use hashicorp/setup-terraform action - bump terraform requirement to 0.13 - bump digitalocean provider requirement to 1.22 - bump to latest nvm - remove a bunch of unnecessary quotes
This commit is contained in:
27
.github/workflows/terraform.yml
vendored
27
.github/workflows/terraform.yml
vendored
@@ -1,23 +1,18 @@
|
||||
name: terraform
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
jobs:
|
||||
terraform:
|
||||
name: Terraform
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: fmt
|
||||
uses: hashicorp/terraform-github-actions@master
|
||||
- uses: actions/checkout@v2
|
||||
- uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
tf_actions_version: 0.12.21
|
||||
tf_actions_subcommand: fmt
|
||||
- name: init
|
||||
uses: hashicorp/terraform-github-actions@master
|
||||
with:
|
||||
tf_actions_version: 0.12.21
|
||||
tf_actions_subcommand: init
|
||||
- name: validate
|
||||
uses: hashicorp/terraform-github-actions@master
|
||||
with:
|
||||
tf_actions_version: 0.12.21
|
||||
tf_actions_subcommand: validate
|
||||
terraform_version: 0.13.0
|
||||
- run: terraform fmt -check -recursive
|
||||
- run: terraform init
|
||||
- run: terraform validate
|
||||
|
Reference in New Issue
Block a user