added test and gitea action workflow
Gitea Action for checking typst compilation / Explore-Gitea-Actions (push) Failing after 7s
Details
Gitea Action for checking typst compilation / Explore-Gitea-Actions (push) Failing after 7s
Details
This commit is contained in:
parent
ca5448e9d3
commit
fbf52d75e3
|
@ -0,0 +1,19 @@
|
||||||
|
name: Gitea Action for checking typst compilation
|
||||||
|
run-name: ${{ gitea.actor }} is performing typst compilation
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "This job is now running on a ${{ runner.os }}"
|
||||||
|
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: typst-community/setup-typst@v3
|
||||||
|
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
|
- name: Install dependencies
|
||||||
|
run: apt update -y
|
||||||
|
- uses: typst-community/setup-typst@v3
|
||||||
|
with:
|
||||||
|
typst-version: '0.11.0'
|
||||||
|
- run: bash run-ci.sh
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
function abort() {
|
||||||
|
echo "test case `$1` has failed" 1>&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Running tests..."
|
||||||
|
|
||||||
|
typst compile tests/local-import/main.typ --root . || abort "local-import"
|
||||||
|
|
||||||
|
echo "Tests completed successfully"
|
10
src/lib.typ
10
src/lib.typ
|
@ -62,12 +62,14 @@
|
||||||
|
|
||||||
#pagebreak(weak: true)
|
#pagebreak(weak: true)
|
||||||
|
|
||||||
#heading(supplement: [outline], "Glossar")
|
#if "glossary" in config.thesis and config.thesis.glossary != none {
|
||||||
|
heading(supplement: [outline], "Glossar")
|
||||||
|
|
||||||
#print-glossary(config.thesis.glossary)
|
print-glossary(config.thesis.glossary)
|
||||||
|
|
||||||
#pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
#counter(page).update(1)
|
counter(page).update(1)
|
||||||
|
}
|
||||||
|
|
||||||
// mark end of prelude
|
// mark end of prelude
|
||||||
#metadata("prelude terminate") <end-of-prelude>
|
#metadata("prelude terminate") <end-of-prelude>
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
#import "../../src/lib.typ": dhbw-template
|
||||||
|
|
||||||
|
#show: dhbw-template.with(
|
||||||
|
config: (
|
||||||
|
lang: "en",
|
||||||
|
region: "en",
|
||||||
|
author: (
|
||||||
|
name: "Sven Vogel",
|
||||||
|
semester: 4,
|
||||||
|
program: "Informationtechnology",
|
||||||
|
course: "TINF19IT1",
|
||||||
|
faculty: "Technik",
|
||||||
|
university: "DHBW Mannheim",
|
||||||
|
company: "ABB AG",
|
||||||
|
supervisor: "Benny Goodman",
|
||||||
|
matriculation-number: 123456789),
|
||||||
|
thesis: (
|
||||||
|
title: "Unofficial ABB/DHBW Typst template",
|
||||||
|
subtitle: "for reports and thesises",
|
||||||
|
submission-date: "23rd march 2020",
|
||||||
|
timeframe: "1st january 2020 - 20th march 2020",
|
||||||
|
kind: "T2000",
|
||||||
|
summary: none,
|
||||||
|
abstract: none,
|
||||||
|
keywords: ( "IT", "other stuff" ),
|
||||||
|
bibliography: none,
|
||||||
|
glossary: none,
|
||||||
|
appendices: none)))
|
Loading…
Reference in New Issue