From 3a2b4b432d6fa3ce27718f686b59770c58b6f82c Mon Sep 17 00:00:00 2001 From: nevergiveupcpp Date: Sun, 15 Mar 2026 19:30:15 +0700 Subject: [PATCH 1/2] chore: run tests only on pull requests --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1882ab6..643c07d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ jobs: test: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + if: github.event_name == 'pull_request' strategy: fail-fast: false From e7f5d65d808a4676e8e8e403147a87d320f326b0 Mon Sep 17 00:00:00 2001 From: nevergiveupcpp Date: Sun, 15 Mar 2026 19:40:54 +0700 Subject: [PATCH 2/2] chore: add all-checks gate job, run tests only on PR --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 643c07d..7db4d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: ["master"] jobs: - test: + unittests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} if: github.event_name == 'pull_request' @@ -106,3 +106,11 @@ jobs: comment-on-alert: true alert-threshold: '150%' fail-on-alert: true + + all-checks: + name: all-checks + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + needs: unittests + steps: + - run: echo "All checks passed"