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'