Merge pull request #1881 from open-domains/dibster-fixing

fix: validation
This commit is contained in:
DIBSTER authored and GitHub committed 2024-12-22 14:39:55 -05:00
commit 8db1383885
1 file changed
+20 -16
+20 -16
View File
@@ -1,18 +1,16 @@
name: Validation
on:
pull_request_target:
push:
branches: [main]
paths:
- "domains/*"
- "tests/*"
- "utils/*"
- ".github/workflows/validate.yml"
- "dnsconfig.js"
workflow_dispatch:
pull_request_target:
push:
branches: [main]
paths:
- "domains/*"
- "tests/*"
- "utils/*"
- ".github/workflows/validate.yml"
- "dnsconfig.js"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-validation
@@ -71,7 +69,7 @@ jobs:
labels: "Validated DNS"
github_token: ${{ steps.create_token.outputs.token }}
issue_number: ${{ github.event.pull_request.number }}
json:
name: JSON
runs-on: ubuntu-latest
@@ -100,12 +98,15 @@ jobs:
with:
labels: "Validated JSON"
github_token: ${{ steps.create_token.outputs.token }}
issue_number: ${{ github.event.pull_request.number }}
- name: Remove Invalid JSON Label
if: ${{ steps.json_check.outcome == 'success' }}
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Invalid JSON"
github_token: ${{ steps.create_token.outputs.token }}
issue_number: ${{ github.event.pull_request.number }}
- name: Add Invalid JSON Label
if: ${{ failure() }}
@@ -113,20 +114,23 @@ jobs:
with:
labels: "Invalid JSON"
github_token: ${{ steps.create_token.outputs.token }}
issue_number: ${{ github.event.pull_request.number }}
- name: Remove Validated JSON Label
if: ${{ failure() }}
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Validated JSON"
github_token: ${{ steps.create_token.outputs.token }}
issue_number: ${{ github.event.pull_request.number }}
tests:
name: Tests
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- run: npm install
- run: npm install
- run: npm test
- run: npm test