From 998d10f279acf0be27c8d12160274bb0a5e3c766 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 | 4 ++++ .github/workflows/check.yaml | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/tl_packages create mode 100644 .github/workflows/check.yaml diff --git a/.github/tl_packages b/.github/tl_packages new file mode 100644 index 0000000..80d0044 --- /dev/null +++ b/.github/tl_packages @@ -0,0 +1,4 @@ +l3build latex latex-bin luatex +cm etex knuth-lib tex tex-ini-files unicode-data +graphics xcolor luacolor +csquotes hypdoc framed metalogo tikzducks pict2e hyperred diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..13257bd --- /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"