From 10c91e87c83f3724a213686ad495d9a92ba2bbf7 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Fri, 6 Sep 2024 14:03:55 +1000 Subject: [PATCH] Added GitHub compatibility for overridden `$HOME`. https://github.com/actions/runner/issues/863 --- Dockerfile | 4 ++++ goss.yaml | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7968c61..633e857 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,10 @@ RUN curl -L -o "/tmp/kcov.tar.gz" "https://github.com/SimonKagstrom/kcov/archive FROM php:8.3-cli-bookworm +# Link the root directory to /github. +# @see https://github.com/actions/runner/issues/863 +RUN ln -s /root /github + # Upgrade all installed packages and clean up. # hadolint ignore=DL3005 RUN apt-get update -qq \ diff --git a/goss.yaml b/goss.yaml index 040eb2d..1728443 100644 --- a/goss.yaml +++ b/goss.yaml @@ -231,5 +231,10 @@ command: php -i | grep -Fq "PCOV support => Enabled": exit-status: 0 - stderr: [ ] + stderr: [] + timeout: 10000 + + test -d /github: + exit-status: 0 + stderr: [] timeout: 10000