-
Notifications
You must be signed in to change notification settings - Fork 235
48 lines (40 loc) · 1.02 KB
/
test.js.yml
File metadata and controls
48 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
- 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