diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 50e06b6..ab83300 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 diff --git a/src/test.js b/src/test.js index 05358dc..1e4defb 100644 --- a/src/test.js +++ b/src/test.js @@ -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); });