Skip to content

Feature123 -> main

Feature123 -> main #4

Workflow file for this run

name: github-actions
on:
pull_request:
branches:
- 'main'
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
jobs:
ubuntu-20:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
- name: Initialize Terraform
run: terraform init
- name: Format
run: terraform fmt
- name: Validate
run: terraform validate
- name: Plan
if: github.event_name == 'pull_request'
run: terraform plan
- name: Apply
run: terraform apply -auto-approve