mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-16 14:13:43 +00:00
fix stuff
This commit is contained in:
1 parent
ebe879e492
commit
2f31cd7748
2 files changed
+5
-13
No files matched your search
@@ -35,18 +35,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
path: ${{ github.run_id }}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: is-a-dev/register
|
repository: is-a-dev/register
|
||||||
path: ../register
|
path: register-${{ github.run_id }}
|
||||||
|
|
||||||
- run: |
|
|
||||||
ls
|
|
||||||
ls ../
|
|
||||||
ls ../
|
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
||||||
@@ -57,9 +50,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: domains/*.json
|
files: domains/*.json
|
||||||
|
|
||||||
- run: cd ..
|
- name: Run tests
|
||||||
|
run: npx ava tests/*.test.js
|
||||||
- run: npx ava register/tests/*.test.js
|
|
||||||
env:
|
env:
|
||||||
EVENT: ${{ github.event_name }}
|
EVENT: ${{ github.event_name }}
|
||||||
RUN_ID: ${{ github.run_id }}
|
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);
|
MODIFIED_FILES[i] = MODIFIED_FILES[i].substring(MODIFIED_FILES[i].lastIndexOf("/") + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const domainsPath = path.resolve(`${process.env.RUN_ID}/domains`);
|
const domainsPath = path.resolve("domains");
|
||||||
const headDomainsPath = path.resolve("register/domains");
|
const headDomainsPath = path.resolve(`register-${process.env.RUN_ID}/domains`);
|
||||||
|
|
||||||
const admins = require("../util/administrators.json");
|
const admins = require("../util/administrators.json");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user