-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (39 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
41 lines (39 loc) · 1.26 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
- name: pre-commit
run: pixi run pre-commit-run --color=always --show-diff-on-failure
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
- name: Use local package
run: |
sed -i 's/#import .*/#import "..\/lib.typ": */' template/cv.typ
- name: Compile
run: pixi run compile
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
path: template/cv.pdf
if-no-files-found: error
- name: Compile thumbnail
run: pixi run compile-thumbnail
- name: Verify git status is clean
run: |
git checkout -- template/cv.typ
git status --porcelain
git diff --quiet