From 517a509b11ff1ab43b888c5b93eaa9c130585fd1 Mon Sep 17 00:00:00 2001 From: Sally Young Date: Mon, 19 Feb 2024 14:52:54 +0000 Subject: [PATCH] Issue #403: Support local act runner (#417) --- README.md | 3 +++ scaffold/github/actions/common/ddev/action.yml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 603a9b5e..613e8475 100644 --- a/README.md +++ b/README.md @@ -394,6 +394,9 @@ They are composite actions which can be used in any of your workflows e.g. ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} ``` +Tests can be run locally with [act](https://github.com/nektos/act): +`act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:runner-latest -j Static-Tests` + ### Composer Lock Diff Update Pull Request descriptions with a markdown table of any changes detected in `composer.lock` using [composer-lock-diff](https://github.com/davidrjonas/composer-lock-diff). diff --git a/scaffold/github/actions/common/ddev/action.yml b/scaffold/github/actions/common/ddev/action.yml index 24c40bf9..8188bedc 100644 --- a/scaffold/github/actions/common/ddev/action.yml +++ b/scaffold/github/actions/common/ddev/action.yml @@ -60,6 +60,11 @@ runs: sudo apt install -y ddev fi + # Support local runner https://github.com/nektos/act + if [ "$ACT" != "" ]; then + sudo chown runner:docker /var/run/docker.sock + fi + ddev config global --instrumentation-opt-in=false --omit-containers=ddev-ssh-agent if [ "${{ inputs.composer-cache-dir }}" != "false" ]; then