Merge pull request #184 from dandi/add-tfcloud-oidc-auth #56
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
lint-terraform: | |
name: Lint Terraform code | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: terraform | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Lint Terraform code | |
run: terraform fmt -check -diff -recursive | |
- name: Initialize Terraform (offline only) | |
run: terraform init -backend=false | |
- name: Validate Terraform code | |
run: terraform validate |