From 0f1bf78b80911d4fe09a1f4aefa4634ae195a612 Mon Sep 17 00:00:00 2001 From: stefansorge <3419073+sorge-it@users.noreply.github.com> Date: Mon, 23 Nov 2026 07:29:47 +0100 Subject: [PATCH] ci: run tests weekly, give each workflow a concurrency group, and move Development to CONTRIBUTING The stack newest changes without a commit here, so tests.yml runs each week. caddy, frankenphp and go-net-http end a stale run of a pull request; mutation waits for the run before it. The README section Development was for contributors; CONTRIBUTING.md now says it. --- .github/CONTRIBUTING.md | 4 +++- .github/workflows/caddy.yml | 4 ++++ .github/workflows/frankenphp.yml | 4 ++++ .github/workflows/go-net-http.yml | 4 ++++ .github/workflows/mutation.yml | 5 +++++ .github/workflows/tests.yml | 3 +++ README.md | 20 +++++--------------- 7 files changed, 28 insertions(+), 16 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 66bf32f..e8a05fd 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -124,7 +124,9 @@ SHA-256. The weekly workflows compare the lock files in `tests/Fixtures` against the newest Caddy and FrankenPHP, and against the Go version of the binary that `release.lock` names. Then `go-net-http.yml` runs the `GoNetHttp` suite with that Go version, and `frankenphp.yml` runs each -suite with the newest FrankenPHP. +suite with the newest FrankenPHP. The weekly `works-with.yml` runs the handlers of the README with +the newest Symfony, Laravel and Slim, and the weekly `tests.yml` runs the stack newest. Every action +and every Docker image is pinned to a commit or a digest. ```sh composer go:extract # cases.json again, after a change of a probe diff --git a/.github/workflows/caddy.yml b/.github/workflows/caddy.yml index f2cd790..f751603 100644 --- a/.github/workflows/caddy.yml +++ b/.github/workflows/caddy.yml @@ -26,6 +26,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} + cancel-in-progress: true + jobs: caddy: name: Newest Caddy diff --git a/.github/workflows/frankenphp.yml b/.github/workflows/frankenphp.yml index 945d203..67f2f56 100644 --- a/.github/workflows/frankenphp.yml +++ b/.github/workflows/frankenphp.yml @@ -35,6 +35,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} + cancel-in-progress: true + jobs: frankenphp: name: Newest FrankenPHP diff --git a/.github/workflows/go-net-http.yml b/.github/workflows/go-net-http.yml index e1d2fa1..9680218 100644 --- a/.github/workflows/go-net-http.yml +++ b/.github/workflows/go-net-http.yml @@ -33,6 +33,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} + cancel-in-progress: true + jobs: go: name: Go of FrankenPHP diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 5855ede..6c376aa 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -11,6 +11,11 @@ on: permissions: contents: read +# A second run waits for the first instead of ending it. +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + jobs: mutation: name: Mutation ยท ${{ matrix.part }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ace0942..686fa37 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,9 @@ on: branches: [main] tags: ['v*'] pull_request: + # Weekly, as the stack newest changes with each release of a package, also without a commit here. + schedule: + - cron: '7 5 * * 1' permissions: contents: read diff --git a/README.md b/README.md index 079d1a8..dc74d5e 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,9 @@ requires 100% line and type coverage, and the weekly mutation tests require a sc 12. [API reference](#api-reference) 13. [HTTP behavior](#http-behavior) 14. [Compatibility with FrankenPHP](#compatibility-with-frankenphp) -15. [Development](#development) -16. [Support](#support) -17. [License](#license) -18. [About the author](#about-the-author) +15. [Support](#support) +16. [License](#license) +17. [About the author](#about-the-author) Sections 1 to 11 are for users. Sections 12 to 14 are for looking up the details. @@ -1293,20 +1292,11 @@ in the form that Chrome receives: a chunked body as a single chunk, without trai [`tests/Fixtures/README.md`](https://github.com/sorge-it/http-server/blob/main/tests/Fixtures/README.md) describes the cases, the probes and the lock files. -## Development - -Weekly jobs check the pins against the newest releases of Caddy and FrankenPHP and run the suites -with them. The weekly `works-with` job runs the handlers of -[Works with Symfony, Laravel and PSR-15](#works-with-symfony-laravel-and-psr-15) with the newest -Symfony, Laravel and Slim. -Every action and every Docker image is pinned to a commit or a digest. -[CONTRIBUTING.md](https://github.com/sorge-it/http-server/blob/main/.github/CONTRIBUTING.md) covers the setup, the tests and what a pull request -needs. - ## Support Found a bug? Open a pull request with a failing test; a fix is welcome but not required. The issue -tracker is closed; see [CONTRIBUTING.md](https://github.com/sorge-it/http-server/blob/main/.github/CONTRIBUTING.md). Report a vulnerability privately +tracker is closed; [CONTRIBUTING.md](https://github.com/sorge-it/http-server/blob/main/.github/CONTRIBUTING.md) covers the setup, the tests and +what a pull request needs. Report a vulnerability privately through GitHub; see the [security policy](https://github.com/sorge-it/http-server/security/policy). ## License