Skip to content

Commit f84a650

Browse files
committed
test: fix testing workflow
1 parent 65651f4 commit f84a650

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ jobs:
2323
- run: npm ci
2424
- run: npm run build:tsc
2525
- run: npm run build:package
26+
- run: npm ci
27+
working-directory: ./tests
2628
- run: npm test
29+
working-directory: ./tests
2730
- run: node scripts/npm-publish.mjs
2831
env:
2932
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ jobs:
2626
- run: npm ci
2727
- run: npm run build:tsc
2828
- run: npm run build:lib
29+
- run: npm ci
30+
working-directory: ./tests
2931
- run: npm test
32+
working-directory: ./tests

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:tsc": "tsc",
1616
"build:lib": "node dist/build/build.js",
1717
"build:package": "node dist/build/package.js",
18-
"test": "echo 'Tests are temporally disabled'"
18+
"test": "echo 'Please run tests in the tests/ directory' && exit 1"
1919
},
2020
"keywords": [],
2121
"author": "uhyo <uhyo@uhy.ooo>",
@@ -27,4 +27,4 @@
2727
"types": []
2828
}
2929
}
30-
}
30+
}

0 commit comments

Comments
 (0)