Skip to content

Commit a3f1f46

Browse files
committed
adds the github test actions
1 parent af9691d commit a3f1f46

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/test.js.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 -r i
28+
pnpm link:src
29+
30+
- name: Temporarily make link
31+
run: |
32+
cd node_modules
33+
ln -s @mathjax/src mathjax-full
34+
35+
- name: Compile MathJax
36+
run: |
37+
pnpm mjs:compile
38+
components/bin/makeAll --mjs --terse --build components/mjs
39+
pnpm cjs:compile
40+
pnpm cjs:components:src:build
41+
components/bin/makeAll --cjs --terse --build components/cjs
42+
pnpm copy:pkg cjs
43+
44+
- name: Build tests
45+
run: pnpm tsc -p testsuite/tsconfig.json
46+
47+
- name: Run tests
48+
run: pnpm test:gh

0 commit comments

Comments
 (0)