From 329405a333112f93f4dd31178ab247be878c332b Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Sun, 22 Dec 2024 14:39:43 -0500 Subject: [PATCH] fix: validation --- .github/workflows/validation.yml | 36 ++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 63c37168..8883b772 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -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