Update testing

This commit is contained in:
Skylar Grant 2024-09-22 19:53:45 -04:00
parent 2012693a64
commit 97c6f855c7
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,11 @@ jobs:
git pull
fi
git checkout ${{ gitea.ref_name }}
- name: Run tests
run: |
cd /var/lib/act_runner/tenorjs-v2
npm install
npm run test
- name: Publish to NPM
run: |
cd /var/lib/act_runner/tenorjs-v2

View File

@ -64,7 +64,9 @@ const tests = [
Promise.all(tests)
.then(() => {
console.log('All tests passed!');
process.exit(0);
})
.catch(() => {
console.log('Some tests failed!');
process.exit(1);
});