From ab15fafe9ca441a2dd9c728b20b42e0f3f8e6125 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 1 Nov 2026 23:15:46 +0300 Subject: [PATCH] ci: a pull request's commit is tested once Both workflows ran on a push to any branch and on its pull request, so every commit of a pull request ran the whole matrix twice, the two runs sharing the runners: a pull request waited about ten minutes for its checks. A push now runs them for master only; a pull request, also one stacked on another, is tested by its pull_request run. --- .github/workflows/linter.yml | 5 +++-- .github/workflows/test.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 05470118..f5456c80 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,10 +1,11 @@ name: Lint +# a branch with a pull request (also one stacked on another) is tested by its +# pull_request run; push runs for every branch tested each commit twice on: push: - branches: ['**'] - pull_request: branches: [master] + pull_request: # the jobs only read the code permissions: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7048be0d..e65e22ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,11 @@ name: Test Suite +# a branch with a pull request (also one stacked on another) is tested by its +# pull_request run; push runs for every branch tested each commit twice on: push: - branches: ['**'] - pull_request: branches: [master] + pull_request: # the jobs only read the code permissions: