mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-15 14:16:38 +00:00
Merge pull request #1881 from open-domains/dibster-fixing
fix: validation
This commit is contained in:
1 file changed
+20
-16
@@ -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
|
||||
Reference in new issue
Block a user