Skip to content

Commit 4775492

Browse files
authored
Merge pull request #1271 from mathjax/update/packages
Update packages and add github actions for tests
2 parents 21f96b8 + ac62404 commit 4775492

18 files changed

Lines changed: 1413 additions & 1229 deletions

File tree

.github/workflows/test.js.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
setup:
13+
runs-on: ubuntu-latest
14+
name: Compile and test MathJax
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v4
20+
name: Install pnpm
21+
with:
22+
version: 10
23+
run_install: false
24+
25+
- name: Install packages
26+
run: |
27+
pnpm -s -r i
28+
pnpm -s link:src
29+
30+
- name: Compile MathJax
31+
run: |
32+
pnpm -s mjs:compile
33+
components/bin/makeAll --mjs --terse --build components/mjs
34+
pnpm -s cjs:compile
35+
pnpm -s cjs:components:src:build
36+
components/bin/makeAll --cjs --terse --build components/cjs
37+
pnpm -s copy:pkg cjs
38+
39+
- name: Build tests
40+
run: pnpm -s tsc -p testsuite/tsconfig.json
41+
42+
- name: Run tests
43+
run: pnpm -s test:gh
44+
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
47+
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}
49+
slug: mathjax/MathJax-src

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax-full?label=npm%20%28full%29)
1111
![npm total downloads](https://img.shields.io/npm/dt/mathjax.svg?style=flat&label=npm%20total)
1212
![npm total downloads](https://img.shields.io/npm/dt/mathjax-full.svg?style=flat&label=npm%20total%20%28full%29)
13+
![test workflow](https://github.com/MathJax/MathJax-src/actions/workflows/test.js.yml/badge.svg?branch=develop)
14+
[![codecov](https://codecov.io/gh/mathjax/mathjax-src/develop/main/graph/badge.svg)](https://codecov.io/gh/mathjax/mathjax-src)
1315

1416
## Beautiful math in all browsers
1517

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
"use-cjs": "echo '{\n \"extends\": \"./tsconfig/cjs.json\"\n}' > tsconfig.json",
124124
"use-mjs": "echo '{\n \"extends\": \"./tsconfig/mjs.json\"\n}' > tsconfig.json",
125125
"=============================================================================== aliases": "",
126-
"test": "cd testsuite && pnpm -s test --",
126+
"test": "cd testsuite && pnpm -s test --verbose",
127+
"test:gh": "cd testsuite && pnpm -s test --silent",
127128
"clean": "pnpm -s clean:mod cjs && pnpm -s cjs:bundle:clean && pnpm -s clean:mod mjs && pnpm -s clean:dir bundle",
128129
"compile-cjs": "pnpm -s cjs:compile",
129130
"compile-mjs": "pnpm -s mjs:compile",
@@ -140,21 +141,21 @@
140141
"devDependencies": {
141142
"copyfiles": "^2.4.1",
142143
"diff": "^5.2.0",
143-
"eslint": "^9.7.0",
144+
"eslint": "^9.28.0",
144145
"eslint-formatter-unix": "^8.40.0",
145146
"eslint-plugin-jsdoc": "^48.11.0",
146-
"eslint-plugin-prettier": "^5.2.1",
147-
"husky": "^9.1.5",
148-
"lint-staged": "^15.2.10",
149-
"prettier": "^3.3.3",
150-
"rimraf": "^5.0.5",
151-
"terser-webpack-plugin": "^5.3.10",
152-
"typescript": "^5.4.5",
153-
"typescript-eslint": "^8.0.0",
147+
"eslint-plugin-prettier": "^5.4.1",
148+
"husky": "^9.1.7",
149+
"lint-staged": "^15.5.2",
150+
"prettier": "^3.5.3",
151+
"rimraf": "^5.0.10",
152+
"terser-webpack-plugin": "^5.3.14",
153+
"typescript": "^5.8.3",
154+
"typescript-eslint": "^8.33.1",
154155
"typescript-tools": "^0.3.1",
155-
"webpack": "^5.91.0",
156+
"webpack": "^5.99.9",
156157
"webpack-cli": "^5.1.4",
157-
"xslt3": "^2.6.0"
158+
"xslt3": "^2.7.0"
158159
},
159160
"lint-staged": {
160161
"ts/**/*.ts": [
@@ -163,11 +164,11 @@
163164
]
164165
},
165166
"dependencies": {
166-
"@mathjax/mathjax-newcm-font": "0.4.0-beta.8",
167+
"@mathjax/mathjax-newcm-font": "0.4.3-beta.8",
167168
"@xmldom/xmldom": "^0.8.10",
168169
"mhchemparser": "^4.2.1",
169170
"mj-context-menu": "^0.9.1",
170-
"speech-rule-engine": "^5.0.0-alpha.4",
171+
"speech-rule-engine": "5.0.0-alpha.4",
171172
"wicked-good-xpath": "^1.3.0"
172173
}
173174
}

0 commit comments

Comments
 (0)