Skip to content

Commit

Permalink
chore: More granular CI workflow (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen authored Aug 25, 2024
1 parent 5fda50d commit 7e8c2dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7e8c2dc

Please sign in to comment.