WIP - Refactoring II #223
This file contains 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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: imagemagick cargo parallel | |
version: 1.0 | |
- name: Install just from crates.io | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: just | |
- name: Install typst-test from github | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: typst-test | |
git: https://github.com/tingerrr/typst-test.git | |
tag: ci-semi-stable | |
- run: | | |
mkdir -p ~/.local/share/typst/packages/preview/cetz | |
git clone --depth 1 --branch v0.3.1 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.1 | |
- uses: typst-community/setup-typst@v3 | |
with: | |
typst-version: '0.12.0-rc2' | |
cache-dependency-path: src/cetz.typ | |
- run: | | |
just install @local | |
just install @preview | |
just manual | |
just test |