-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.05 KB
/
test.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: test
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install just from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Install required fonts
run: |
sudo apt-get install fontconfig
wget -O inter.zip https://github.com/rsms/inter/releases/download/v4.0/Inter-4.0.zip
mkdir ./inter
unzip -d ./inter inter.zip
mkdir -p /usr/share/fonts/inter
mv ./inter/extras/ttf/* /usr/share/fonts/inter
fc-cache -f -v
- name: Install typst-test from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: typst-test
git: https://github.com/tingerrr/typst-test.git
tag: ci-semi-stable
- uses: typst-community/setup-typst@v3
- run: |
just test
- uses: actions/upload-artifact@v3
with:
name: tests
path: tests