Skip to content

Update packages and add github actions for tests #7

Update packages and add github actions for tests

Update packages and add github actions for tests #7

Workflow file for this run

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 reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: mathjax/MathJax-src