This repository was archived by the owner on Jan 13, 2025. It is now read-only.
feat: add cloudflare module #5
Workflow file for this run
This file contains hidden or 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: Validate changes | |
on: | |
push: | |
branches-ignore: | |
- 'main' | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
fmt-check: | |
runs-on: ubuntu-latest | |
name: Check formatting of terraform files | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: ${{ vars.AWS_ARN }} | |
role-session-name: terraform-fmt-check | |
- name: terraform fmt | |
uses: dflook/terraform-fmt-check@v1 | |
with: | |
path: terraform | |
validate: | |
runs-on: ubuntu-latest | |
name: Validate terraform configuration | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: ${{ vars.AWS_ARN }} | |
role-session-name: terraform-validate | |
- name: terraform validate | |
uses: dflook/terraform-validate@v1 | |
with: | |
path: terraform |