Skip to content

Add kzonecheck to pr build #49

Add kzonecheck to pr build

Add kzonecheck to pr build #49

Workflow file for this run

name: "Pull Request"
on:
pull_request:
permissions: read-all
defaults:
run:
working-directory: sld
jobs:
validations:
name: "Validate"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # @v4
- name: Setup Terraform with specified version on the runner
uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # @v3
with:
terraform_version: 1.8.3
- name: Terraform format
run: terraform fmt -check
- name: Setup kzonecheck
run: sudo apt-get update && sudo apt-get install -y knot-dnsutils
- name: Run kzonecheck on each zone file
run: find . -type f -name "*.zone" -print0 | xargs -0L1 kzonecheck -v