Skip to content

💚 Validate Instrastructure-as-code #5

💚 Validate Instrastructure-as-code

💚 Validate Instrastructure-as-code #5

# Copyright 2024
#
# Everyone is permitted to copy, distribute, modify, merge, sell, publish,
# sublicense or whatever the fuck they want with this software but at their
# OWN RISK.
# The author has absolutely no fucking clue what the code in this project
# does. It might just fucking work or not, there is no third option.
#
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
---
name: Validate infrastructure (Terraform)
on:
merge_group: {}
pull_request:
paths:
- ./.github/workflows/merge_group,pull_request.terraform.validate.yaml
- infrastructure/live/external/**
permissions: {}
jobs:
validate_infrastructure:
name: Terraform validate
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
- run: terraform init
working-directory: infrastructure/live/external
- run: terraform validate
working-directory: infrastructure/live/external