-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.2 KB
/
tests-ci.yml
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
name: Tests CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the branches below
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows one to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
# Test for the following Typst versions
# 0.7.0 (earliest supported), 0.8.0,
# 0.9.0 (first version with version checks), 0.10.0,
# 0.11.0 (latest supported)
typst-version: [v0.7.0, v0.8.0, v0.9.0, v0.10.0, v0.11.0]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: 📥 Setup Typst
uses: typst-community/setup-typst@v3
id: setup-typst
with:
typst-version: ${{ matrix.typst-version }}
- name: 🛠️ Compile test document
run: "typst compile tests/strfmt-tests.typ --root ."