Update and rename tests.yml to validation.yml

This commit is contained in:
William Harrison authored and GitHub committed 2022-12-04 15:06:58 +08:00
1 parent dbd239f18d
commit 713ba02e42
1 file changed
+1 -1
+48
View File
@@ -0,0 +1,48 @@
name: Validation
on:
workflow_dispatch: {}
push:
branches: [main]
tags-ignore: ['**']
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']
concurrency:
group: ${{ github.ref }}-tests
cancel-in-progress: true
jobs:
gitleaks:
name: GitLeaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 0}
- uses: gacts/gitleaks@v1
check:
name: DNSControl Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gacts/install-dnscontrol@v1
- run: dnscontrol check
validate-schemas:
name: Validate Schemas
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: walbo/validate-json@v1.1.0
with:
schema-version: draft-07
print-valid-files: true
fail-on-missing-schema: true
strict: false
files: ./domains/**/*.json