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