From 70f53fc577b176777fcd6fccd78ff8f15222f505 Mon Sep 17 00:00:00 2001 From: John Wright Date: Thu, 2 Jul 2026 14:31:05 +0100 Subject: [PATCH 1/2] test: without python --- .github/workflows/pull-request.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 01cc10a..ce8e3ca 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -57,3 +57,41 @@ jobs: echo "$LETTER does not equal 'h'" exit 1 fi + + test-without-python: + name: Test (no Python preinstalled) + runs-on: ubuntu-latest + container: + image: ubuntu:latest + steps: + - name: ๐Ÿ“ฆ Install git + run: | + apt-get update + apt-get install -y --no-install-recommends git + + - name: ๐Ÿงช Assert Python is not preinstalled + run: | + if command -v python3 >/dev/null 2>&1 || command -v python >/dev/null 2>&1 + then + echo "Python is preinstalled; this test requires an image without it" + exit 1 + fi + + - name: ๐Ÿšš Checkout project + uses: actions/checkout@v6 + + - name: Test Single Line + id: test + uses: ./ + with: + ref: refs/tags/@johngw/my-package-v1.2.3 + regex: refs/tags/(?P@johngw/[a-zA-Z0-9_-]+)-v(?P\d+.\d+.\d+)$ + + - name: ๐Ÿงช Assert Package + run: | + PACKAGE='${{ fromJSON(steps.test.outputs.groups).package }}' + if [[ $PACKAGE != '@johngw/my-package' ]] + then + echo "$PACKAGE does not equal '@johngw/my-package'" + exit 1 + fi From 63e69c70e34205509299dca2bd0dc2c075f91029 Mon Sep 17 00:00:00 2001 From: John Wright Date: Thu, 2 Jul 2026 14:32:38 +0100 Subject: [PATCH 2/2] ci: install ca-certificates along with git --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ce8e3ca..821ba21 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -67,7 +67,7 @@ jobs: - name: ๐Ÿ“ฆ Install git run: | apt-get update - apt-get install -y --no-install-recommends git + apt-get install -y --no-install-recommends git ca-certificates - name: ๐Ÿงช Assert Python is not preinstalled run: |