From 1ebf266b247a5aa6c41bea67de6d40166e49f196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Mon, 26 Feb 2024 07:33:47 +0100 Subject: [PATCH] Add initial GH Actions setup --- .github/tl_packages | 5 +++++ .github/workflows/check.yaml | 43 ++++++++++++++++++++++++++++++++++++ testfiles/.gitkeep | 0 3 files changed, 48 insertions(+) create mode 100644 .github/tl_packages create mode 100644 .github/workflows/check.yaml create mode 100644 testfiles/.gitkeep diff --git a/.github/tl_packages b/.github/tl_packages new file mode 100644 index 0000000..4757ced --- /dev/null +++ b/.github/tl_packages @@ -0,0 +1,5 @@ +l3build latex latex-bin luatex +cm etex knuth-lib tex tex-ini-files unicode-data +graphics xcolor luacolor +tools iftex infwarerr +csquotes hypdoc framed metalogo tikzducks pict2e hyperref pgf diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..6817fb6 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,43 @@ +name: Test suite + +on: + push: + branches: + - '*' + pull_request: + +jobs: + tests: + runs-on: ubuntu-22.04 + name: Test suite + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install TeX Live + uses: zauguin/install-texlive@v3 + with: + package_file: .github/tl_packages + - name: Run l3build + run: l3build check --show-log-on-error -q -H + - name: Archive failed test output + if: ${{ always() }} + uses: zauguin/l3build-failure-artifacts@v1 + with: + name: testfiles + docs: + runs-on: ubuntu-22.04 + name: Documentation + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install TeX Live + uses: zauguin/install-texlive@v3 + with: + package_file: .github/tl_packages + - name: Run l3build + run: l3build doc -q -H + - name: Archive documentation + uses: actions/upload-artifact@v4 + with: + name: Documentation + path: "**/*.pdf" diff --git a/testfiles/.gitkeep b/testfiles/.gitkeep new file mode 100644 index 0000000..e69de29