mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 12:16:57 +00:00
Update and rename tests.yml to validation.yml
This commit is contained in:
1 parent
dbd239f18d
commit
713ba02e42
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user