From a29e67716e99da211f13c5a76d17d44556e1fdb8 Mon Sep 17 00:00:00 2001 From: Ib Green Date: Sun, 25 Aug 2024 08:36:56 -0400 Subject: [PATCH] chore: More granular CI workflow --- .github/workflows/test.yml | 10 +++++++--- package.json | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 157bfd4c7a..37e7e1f333 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,9 +31,13 @@ jobs: run: | yarn build - - name: Run tests + - name: Run tests in Puppeteer and generage Coverage run: | - yarn test-ci + yarn test-cover + + - name: Run tests on Node + run: | + yarn test-node - name: Run lint run: | @@ -43,7 +47,7 @@ jobs: run: | yarn test-website - - name: Coveralls + - name: Upload coverage to Coveralls uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # v1.2.5 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 08b24986ac..c364d61517 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "publish-prod": "ocular-publish version-only-prod", "version": "node scripts/verify-changelog.js && git add CHANGELOG.md", "test": "ocular-test", - "test-ci": "ocular-test node && ocular-test cover", + "test-ci": "ocular-lint && ocular-test node && ocular-test cover", + "test-node": "ocular-test node", + "test-cover": "ocular-test cover", "test-fast": "ocular-test fast", "test-browser": "ocular-test browser", "test-browser-headless": "ocular-test browser-headless | tap-spec",