From fe84605f2477ed050bb4f9daa8533f418008aeac Mon Sep 17 00:00:00 2001 From: Billy Richardson Date: Tue, 31 May 2022 05:16:47 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20JS=20QUnit=20tests=20to=20?= =?UTF-8?q?build=20workflow=20with=20node-qunit-puppeteer=20(#4534)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44d27367b..84c8c2f39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,6 +65,19 @@ jobs: run: | pytest + test-js-unit: + name: ๐Ÿงช JavaScript unit tests + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: ๐Ÿ— Set up test dependencies + run: | + npm -g install node-qunit-puppeteer@2.1.0 + - name: ๐Ÿš€ Run helpers.js test suite + run: | + node-qunit-puppeteer tests/static/js/test-helpers.html + test-install: name: ๐Ÿงช Installation tests needs: build @@ -146,6 +159,7 @@ jobs: needs: - pre-commit - test-unit + - test-js-unit - test-install - test-e2e runs-on: ubuntu-latest