chore(deps): update terraform oci to v6 #543
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
name: terraform | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/terraform.yml' | |
- 'terraform/**' | |
jobs: | |
terraform: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: get terraform version | |
id: terraform_version | |
working-directory: terraform | |
run: | | |
echo -n "::set-output name=version::" | |
cat .terraform-version | |
- uses: hashicorp/[email protected] | |
with: | |
terraform_version: ${{ steps.terraform_version.outputs.version }} | |
- name: check format | |
working-directory: terraform | |
run: terraform fmt -check -recursive | |
- name: tflint with reviewdog | |
uses: reviewdog/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
fail_on_error: true | |
- name: init | |
working-directory: terraform | |
run: terraform init -backend=false | |
- name: validate | |
working-directory: terraform | |
run: terraform validate | |
env: | |
GITHUB_APP_ID: 123456 | |
GITHUB_APP_INSTALLATION_ID: 12345678 | |
GITHUB_APP_PEM_FILE: "\n" |