From 975472d85896f77cfe79c2712135f22a445ecd0b Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Sun, 24 Aug 2025 09:04:19 +0200 Subject: [PATCH] ci: :construction_worker: add test workflow --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b8ada39 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Test template creation + +on: + push: + branches: + - main + pull_request: + +# Least privilege permissions +permissions: read-all + +jobs: + test-copier: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + + - name: Set up uv + uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba + with: + enable-cache: true + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@9e48da27e184aa238fcb49f5db75469626d43adb # v2.1.9 + + - name: Install justfile + run: sudo apt install -y just + + - name: Set Git user + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "fake@example.com" + + - name: Test and check template creation + run: just _tests