From c38391cfa9c5f51fd4de4b0998fa75fe74b11197 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sat, 25 Jul 2026 12:41:17 +0300 Subject: [PATCH] Cleanup GitHub workflows --- .github/workflows/bc.yml | 31 +++++++---------- .github/workflows/build.yml | 34 ++++++++----------- .../workflows/composer-require-checker.yml | 33 +++++++----------- .github/workflows/static.yml | 31 +++++++---------- .github/workflows/zizmor.yml | 4 +++ 5 files changed, 57 insertions(+), 76 deletions(-) diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index a9fffcf..e429e08 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -1,29 +1,22 @@ +name: backwards compatibility + on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: &paths + - 'src/**' + - 'composer.json' + - '.github/workflows/bc.yml' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' - -name: backwards compatibility + paths: *paths permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: roave_bc_check: uses: yiisoft/actions/.github/workflows/bc.yml@master @@ -31,4 +24,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1'] + ['8.5'] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd500ed..16df22d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,33 +1,29 @@ -permissions: - contents: read +name: build on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' - + paths: &paths + - 'src/**' + - 'tests/**' + - 'phpunit.xml.dist' + - 'composer.json' + - '.github/workflows/build.yml' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + paths: *paths -name: build +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: phpunit: uses: yiisoft/actions/.github/workflows/phpunit.yml@master secrets: - codecovToken: ${{ secrets.CODECOV_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: os: >- ['ubuntu-latest', 'windows-latest'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 09e2ef8..99dfb1c 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,29 +1,22 @@ -permissions: - contents: read +name: Composer require checker on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' - + paths: &paths + - 'src/**' + - 'tests/**' + - 'composer.json' + - '.github/workflows/composer-require-checker.yml' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: *paths -name: Composer require checker +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: composer-require-checker: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index eb26ff0..e729aa5 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,27 +1,22 @@ -permissions: - contents: read +name: static analysis on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - + paths: &paths + - 'src/**' + - 'psalm.xml' + - 'composer.json' + - '.github/workflows/static.yml' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' + paths: *paths -name: static analysis +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: psalm: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 7534234..6ff2a77 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -13,6 +13,10 @@ permissions: actions: read # Required by zizmor when reading workflow metadata through the API contents: read # Required to read workflow files +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: zizmor: uses: yiisoft/actions/.github/workflows/zizmor.yml@master