Skip to content

Commit

Permalink
ci: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlang committed Jun 20, 2024
1 parent c63bcf1 commit 1afe205
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Unit Tests (Vitest)
on:
push:
branches: [main]
# push:
# branches: [main]
pull_request:
branches: [main]

Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/vitest2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
name: Unit Tests 2 (Vitest)
on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
actions: write
checks: write
contents: write
deployments: write
discussions: write
issues: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: read
statuses: write

jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
packages: |
scheme-basic
luatex
dvisvgm
standalone
pgf
microtype
mathtools
luatex85
lipsum
xcolor
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install Poppler
run: |
sudo apt-get install -y poppler-data
sudo apt-get install -y poppler-utils
- name: Install PNPM
run: npm install -g pnpm

- name: Install Node.js dependencies
run: pnpm install

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

- name: Run Vitest tests
run: pnpm test

- uses: actions/upload-artifact@v4
if: always()
with:
name: vitest-report-2
path: html/
retention-days: 30
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ import { sveltex } from '@nvl/sveltex';

In alphabetical order:

- [ ] Add contribution guidelines.
- [ ] Improve CI pipeline.
- [ ] Improve documentation.
- [ ] Improve integration tests.
- [ ] Improve source map support.
- [x] Support preprocessing LaTeX content before passing it to MathJax/KaTeX.
- [ ] VSCode extension for proper syntax highlighting of `.sveltex` files.
- [ ] Yeoman generator for scaffolding new Sveltex projects.

Expand Down

0 comments on commit 1afe205

Please sign in to comment.