feat: add init option #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
- pull_request | |
env: | |
tf_actions_working_dir: . | |
jobs: | |
terraform-verify: | |
name: 'Terraform Verify' | |
defaults: | |
run: | |
working-directory: ${{ env.tf_actions_working_dir }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: GuillaumeFalourd/diff-action@v1 | |
with: | |
first_file_path: variables.tf | |
second_file_path: examples/basic/variables.tf | |
expected_result: PASSED | |
- uses: hashicorp/[email protected] | |
with: | |
terraform_wrapper: false | |
- name: Terraform fmt | |
id: fmt | |
run: terraform fmt -check | |
continue-on-error: true | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
- name: Terraform Validate | |
id: validate | |
run: terraform validate -no-color | |
- name: Integration tests | |
id: test | |
run: make test |