-
Notifications
You must be signed in to change notification settings - Fork 235
Update packages and add github actions for tests #1271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fe88f40
Upgrade packages
zorkow 7fe4e40
adapt types for latest tsc
zorkow c350a09
add ts-ignore for regexp flags u which is not in target ES5
zorkow 226456e
fixes filenams in tests and some measures in bussproof tests
zorkow 685b5c0
update test config for latest typescript and gh actions use
zorkow aa7f8f2
corrects types and adds missing dom lib for tsc
zorkow af9691d
update package.json for latest pnpm
zorkow a3f1f46
adds the github test actions
zorkow 2f98b99
ensure to allow js as import in test helpers
zorkow 5819fdb
avoid declaration file error explicitly
zorkow a963ab1
update packages for tests
zorkow 9af730b
add coverage and test report badges
zorkow 7ac6d95
corrects badge paths
zorkow 13dfafc
add upload token for code coverage report
zorkow f27bde3
incorporate review comments
zorkow 6e40080
update font, remove link, ensure ts-jest gets right tsconfig
zorkow ac62404
undo bussproofs test changes
zorkow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - develop | ||
| pull_request: | ||
| branches: | ||
| - develop | ||
|
|
||
| jobs: | ||
| setup: | ||
| runs-on: ubuntu-latest | ||
| name: Compile and test MathJax | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| name: Install pnpm | ||
| with: | ||
| version: 10 | ||
| run_install: false | ||
|
|
||
| - name: Install packages | ||
| run: | | ||
| pnpm -r i | ||
| pnpm link:src | ||
|
|
||
| - name: Temporarily make link | ||
| run: | | ||
| cd node_modules | ||
| ln -s @mathjax/src mathjax-full | ||
| cd .. | ||
|
|
||
| - name: Compile MathJax | ||
| run: | | ||
| pnpm mjs:compile | ||
| components/bin/makeAll --mjs --terse --build components/mjs | ||
| pnpm cjs:compile | ||
| pnpm cjs:components:src:build | ||
| components/bin/makeAll --cjs --terse --build components/cjs | ||
| pnpm copy:pkg cjs | ||
|
|
||
| - name: Build tests | ||
| run: pnpm tsc -p testsuite/tsconfig.json | ||
|
|
||
| - name: Run tests | ||
| run: pnpm test:gh | ||
|
|
||
| - name: Upload coverage to GitHub | ||
| uses: codecov/codecov-action@v2 | ||
| with: | ||
| file: ./coverage/lcov.info # Path to the coverage file | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be willing to use
pnpm -srather than justpnpmfor these (and the ones below)? That way, you only see that script output rather than the pnpm commands themselves. I think that looks cleaner.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.