-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on:
push:
branches: "main"
paths-ignore:
- README.md
- LICENSE
- .gitattributes
- .gitignore
- .github/**
- "!.github/workflows/test.yml"
pull_request:
paths-ignore:
- README.md
- LICENSE
- .gitattributes
- .gitignore
- .github/**
- "!.github/workflows/test.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: shellcheck install.sh
install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- run: cat install.sh | sh
- run: echo "$HOME/.typst/bin" >> "$GITHUB_PATH"
- run: typst --version
- run: typst compile test.typ
install-ps1:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: npm install --global serve
- shell: bash
run: nohup serve -p 8000 & sleep 3
- run: |
irm http://localhost:8000/install.ps1 | iex
typst --version
typst compile test.typ