Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e5ea816
chore: WIP - replace `nps` with npm scripts
voxpelli Nov 7, 2023
624d954
Fix `mocha.yml` smoke run
voxpelli Mar 26, 2024
6f97c6b
Update npm-run-all2
voxpelli Jun 17, 2024
8a34a56
Add missing `git add` in version command
voxpelli Jun 17, 2024
42c5897
Merge remote-tracking branch 'origin/master' into voxpelli/issue5126
voxpelli Jun 17, 2024
e94fa5b
Fix spelling mistake that's fixed in master
voxpelli Jun 17, 2024
1eb3648
Log current test suite from karma
voxpelli Jun 17, 2024
e16d25d
Dedupe some npm scripts
voxpelli Jun 17, 2024
8aac6e0
Merge remote-tracking branch 'origin/main' into voxpelli/issue5126
voxpelli Jul 15, 2024
6105a8e
Merge remote-tracking branch 'origin/main' into voxpelli/issue5126
voxpelli Aug 1, 2024
4e3e05d
Add a matrix to run the individual node tests
voxpelli Aug 1, 2024
543d517
Speed: Leaner smoke tests
voxpelli Aug 1, 2024
d550948
Add another level of "smoke" tests
voxpelli Aug 1, 2024
56921a6
Temporary fix for coverage report run
voxpelli Aug 1, 2024
b1935c0
Ensure building mocha.js before integration tests
voxpelli Aug 1, 2024
f0243d0
Additional grouping level in test-node scripts
voxpelli Aug 1, 2024
4b80df2
Fix flag name for coverage to work with matrix
voxpelli Aug 1, 2024
1ab29e4
Skip coverage for `jsapi` for now
voxpelli Aug 1, 2024
8c95028
Port all node tests from nps to npm scripts
voxpelli Aug 2, 2024
7a01bf6
Remove unused coveralls module
voxpelli Aug 2, 2024
61ba911
Set FORCE_COLOR=3 in workflow
voxpelli Aug 2, 2024
560b35f
Try swapping `nyc` for `c8`
voxpelli Aug 2, 2024
0e19522
Remove FORCE_COLOR
voxpelli Aug 2, 2024
890993a
Docs updates
voxpelli Aug 2, 2024
6edd503
Port `docs` from nps to npm scripts + remove nps
voxpelli Aug 2, 2024
d16a8be
Fix markdown linting error
voxpelli Aug 2, 2024
083380d
Remove leftover console log
voxpelli Aug 2, 2024
3d34753
Revert "Try swapping `nyc` for `c8`"
voxpelli Aug 2, 2024
72a0026
Merge remote-tracking branch 'origin/main' into voxpelli/issue5126
voxpelli Aug 5, 2024
4c7c731
Followup fix to merge
voxpelli Aug 5, 2024
70bb03d
Remove special timeout
voxpelli Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a matrix to run the individual node tests
  • Loading branch information
voxpelli committed Aug 1, 2024
commit 4e3e05deba88f6dd419dbb2e2670aa349ad54e62
26 changes: 25 additions & 1 deletion .github/workflows/mocha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,36 @@ jobs:
# TODO: Restore "mocha-github-actions-reporter" style reporting without relying on third party module
uses: ./.github/workflows/npm-script.yml
needs: smoke
strategy:
fail-fast: false
matrix:
test-part:
- bdd
- tdd
- qunit
- exports
- unit
- integration
- jsapi
- requires
- reporters
- only
with:
os: 'ubuntu-latest,windows-2019'
node-versions: '14,16,18,20,22'
npm-script: test-node
npm-script: test-node:${{ matrix.test-part }}
coverage: true

test-node-upload-coverage:
needs: test-node
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true

test-browser-local:
uses: ./.github/workflows/npm-script.yml
with:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/npm-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,3 @@ jobs:
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true

upload-coverage:
needs: script
if: always() && inputs.coverage
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@
"test-browser:reporters": "run-s 'helper:cross-env NODE_PATH=. MOCHA_TEST={%} run-s helper:test-browser' -- bdd esm qunit tdd",
"test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js",
"test-browser": "run-s clean build test-browser:*",
"test-node:bdd": "nps testNode.bdd",
"test-node:tdd": "nps testNode.tdd",
"test-node:qunit": "nps testNode.qunit",
"test-node:exports": "nps testNode.exports",
"test-node:unit": "nps testNode.unit",
"test-node:integration": "nps testNode.integration",
"test-node:jsapi": "nps testNode.jsapi",
"test-node:requires": "nps testNode.requires",
"test-node:reporters": "nps testNode.reporters",
"test-node:only": "nps testNode.only",
"test-node": "rimraf .nyc_output && run-s clean && nps testNode",
"test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js",
"test": "run-s lint test-node test-browser",
Expand Down