mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-14 08:58:25 +00:00
fix stuff
This commit is contained in:
@@ -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 }}
|
||||
|
||||
+2
-2
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user