Update testing
This commit is contained in:
parent
2012693a64
commit
97c6f855c7
@ -28,6 +28,11 @@ jobs:
|
|||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
git checkout ${{ gitea.ref_name }}
|
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
|
- name: Publish to NPM
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/tenorjs-v2
|
cd /var/lib/act_runner/tenorjs-v2
|
||||||
|
@ -64,7 +64,9 @@ const tests = [
|
|||||||
Promise.all(tests)
|
Promise.all(tests)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log('All tests passed!');
|
console.log('All tests passed!');
|
||||||
|
process.exit(0);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
console.log('Some tests failed!');
|
console.log('Some tests failed!');
|
||||||
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user