From 2f31cd774869920122aa7d58ef5dca15243bb77c Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:49:51 +0800 Subject: [PATCH] fix stuff --- .github/workflows/validation.yml | 14 +++----------- tests/pr.test.js | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 9f17e9dae..f77187016 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -35,18 +35,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - path: ${{ github.run_id }} - uses: actions/checkout@v4 with: repository: is-a-dev/register - path: ../register - - - run: | - ls - ls ../ - ls ../ + path: register-${{ github.run_id }} - run: npm install @@ -57,9 +50,8 @@ jobs: with: files: domains/*.json - - run: cd .. - - - run: npx ava register/tests/*.test.js + - name: Run tests + run: npx ava tests/*.test.js env: EVENT: ${{ github.event_name }} RUN_ID: ${{ github.run_id }} diff --git a/tests/pr.test.js b/tests/pr.test.js index 9244460ff..f178ddecd 100644 --- a/tests/pr.test.js +++ b/tests/pr.test.js @@ -9,8 +9,8 @@ for (let i = 0; i < MODIFIED_FILES.length; i++) { MODIFIED_FILES[i] = MODIFIED_FILES[i].substring(MODIFIED_FILES[i].lastIndexOf("/") + 1); } -const domainsPath = path.resolve(`${process.env.RUN_ID}/domains`); -const headDomainsPath = path.resolve("register/domains"); +const domainsPath = path.resolve("domains"); +const headDomainsPath = path.resolve(`register-${process.env.RUN_ID}/domains`); const admins = require("../util/administrators.json");