This repository was archived by the owner on Apr 7, 2026. It is now read-only.
docs(testing): Add docs for local testing and contributor test workflow #391
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/**" | |
| - "docs/**" | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test package | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install Typst | |
| run: sudo snap install typst | |
| - name: Install Tytanic | |
| uses: taiki-e/cache-cargo-install-action@v2 | |
| with: | |
| tool: tytanic@0.2.2 | |
| - name: Run test suite | |
| run: tt run --no-fail-fast | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: artifacts | |
| path: | | |
| tests/**/diff/*.png | |
| tests/**/out/*.png | |
| tests/**/ref/*.png | |
| retention-days: 3 | |
| docs: | |
| name: Test documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Typst | |
| run: sudo snap install typst | |
| - name: Build using Typst HTML | |
| run: typst compile docs/main.typ --format html --features html --root . |