From a49cf7edc5b247c94e4e155fc1bf282df59d1edb Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 17 Feb 2026 15:21:20 +0000 Subject: [PATCH] ci: speed up ci --- .github/workflows/static.yml | 7 ++++++- .github/workflows/tests.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index ef51a559..ae45ea68 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -2,10 +2,15 @@ name: Static Analysis on: push: + branches: [4.x] pull_request: schedule: - cron: '0 0 * * *' +concurrency: + group: static-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: static: if: github.event_name != 'schedule' || github.repository == 'pestphp/pest' @@ -44,7 +49,7 @@ jobs: static-php-8.3-composer- - name: Install Dependencies - run: composer update --prefer-stable --no-interaction --no-progress --ansi + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi - name: Profanity Check run: composer test:profanity diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0c1ee2c..1f74b76e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,8 +2,13 @@ name: Tests on: push: + branches: [4.x] pull_request: +concurrency: + group: tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: tests: if: github.event_name != 'schedule' || github.repository == 'pestphp/pest'