From 97c6f855c7884733c60352b6590920d56c40b787 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 22 Sep 2024 19:53:45 -0400 Subject: [PATCH] Update testing --- .gitea/workflows/deploy.yml | 5 +++++ src/test.js | 2 ++ 2 files changed, 7 insertions(+) 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); });