From 0e6333facae0c4050ed8962ef75107dd7a574d06 Mon Sep 17 00:00:00 2001 From: Lai Hung <19669099+phoduke@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:45:04 +0700 Subject: [PATCH] docs: drop local act; CI runs on runner-up --- .github/workflows/ci.yml | 6 +++--- README.md | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c38a56..a5c6dbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI -# GitHub Actions is disabled on this repository on purpose. Run this file -# locally with act, for example: act pull_request -W .github/workflows/ci.yml +# Runs as GitHub Actions on self-hosted runner-up machines (runs-on: linux-x64). +# Read results with `gh pr checks` and failures with `gh run view --log-failed`. on: push: @@ -53,7 +53,7 @@ jobs: with: persist-credentials: false # The files are copied into the container, not bind-mounted, so this - # works the same on a hosted runner and under act. + # works even when the Docker daemon cannot see the runner's paths. - name: php -l on every PHP file, theme and dev harness run: | set -euo pipefail diff --git a/README.md b/README.md index d998b84..c066780 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,14 @@ The theme folder is mounted read-only, so edits show up on reload. `tools/wp-dev ## Checks -CI is `.github/workflows/ci.yml`. GitHub Actions is off for this repository, so run it locally with [act](https://github.com/nektos/act): +CI is `.github/workflows/ci.yml`, run as GitHub Actions on self-hosted runner-up machines for pull requests and pushes to `main`. Push the branch, then read the result with `gh pr checks` and any failure with `gh run view --log-failed`. To check locally, run the commands each job runs, for example: ```sh -act pull_request -W .github/workflows/ci.yml +node tools/build-tokens.mjs --check +npm ci --prefix tools && node tools/check-theme-json.mjs ``` -It checks that the generated files are up to date, that `theme.json` and the style files match the WordPress schema (`npm ci --prefix tools && node tools/check-theme-json.mjs`), that every PHP file passes `php -l` on PHP 7.4 and 8.4, and every Hugo and Ghost check in the sections below. +CI checks that the generated files are up to date, that `theme.json` and the style files match the WordPress schema (`npm ci --prefix tools && node tools/check-theme-json.mjs`), that every PHP file passes `php -l` on PHP 7.4 and 8.4, and every Hugo and Ghost check in the sections below. ## Build and check the Hugo theme