Initial Oracle Deep Data Security lab kit
This commit is contained in:
39
.github/workflows/terraform-validate.yml
vendored
Normal file
39
.github/workflows/terraform-validate.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Terraform Validate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "terraform/**"
|
||||
- ".github/workflows/terraform-validate.yml"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "terraform/**"
|
||||
- ".github/workflows/terraform-validate.yml"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: terraform/envs/demo
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: hashicorp/setup-terraform@v3
|
||||
with:
|
||||
terraform_version: "1.8.5"
|
||||
|
||||
- name: Terraform fmt
|
||||
run: terraform fmt -recursive -check
|
||||
|
||||
- name: Terraform init
|
||||
run: terraform init -backend=false
|
||||
|
||||
- name: Terraform validate
|
||||
run: terraform validate
|
||||
|
||||
Reference in New Issue
Block a user