Add kzonecheck to pr build #49
This file contains 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: "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 |