diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index 7d57ef47..3c7add6e 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -1,36 +1,22 @@ -permissions: - contents: read +name: backwards compatibility on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: &paths + - 'src/**' + - '.github/workflows/bc.yml' + - '.roave-backward-compatibility-check.xml' + - 'composer.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: backwards compatibility +permissions: + contents: read jobs: roave_bc_check: uses: yiisoft/actions/.github/workflows/bc.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.3'] diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 08db924b..31599b1a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -1,29 +1,23 @@ -permissions: - contents: read +name: benchmark on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' - + paths: &paths + - '.github/workflows/bench.yml' + - 'src/**' + - 'tests/Benchmark/**' + - 'composer.json' + - 'phpbench.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths + +permissions: + contents: read -name: build +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: phpbench: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19ebb294..da071396 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,29 +1,25 @@ -permissions: - contents: read +name: build on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'messages/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/build.yml' + - 'composer.json' + - 'phpunit.xml.dist' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: build +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: phpunit: diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 156287ce..893c769c 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,31 +1,23 @@ -permissions: - contents: read +name: Composer require checker on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'src/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + 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/docs.yml b/.github/workflows/docs.yml index 594ef06f..daed9fe7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,16 +2,12 @@ name: Update docs translation on: pull_request: - paths: - - 'docs/po/**' - - 'docs/pot/**' - - 'docs/po4a.conf' - - 'docs/po4a-base.conf' - - 'docs/prepare-config.sh' + paths: &paths + - '.github/workflows/docs.yml' + - 'docs/**' push: branches: [ "master" ] - paths: - - 'docs/**' + paths: *paths permissions: contents: read diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index ce6170ad..8c911b8f 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -1,27 +1,21 @@ -permissions: - contents: read +name: mutation test on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' - + paths: &paths + - 'config/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/mutation.yml' + - 'composer.json' + - 'infection.json.dist' + - 'phpunit.xml.dist' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' + branches: ['master'] + paths: *paths -name: mutation test +permissions: + contents: read jobs: mutation: diff --git a/.github/workflows/rector-cs.yml b/.github/workflows/rector-cs.yml index dae5dca8..de3767b7 100644 --- a/.github/workflows/rector-cs.yml +++ b/.github/workflows/rector-cs.yml @@ -2,14 +2,15 @@ name: Rector + PHP CS Fixer on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'config/**' + - 'messages/**' + - 'src/**' + - 'tests/**' + - '.github/workflows/rector-cs.yml' + - 'composer.json' + - 'rector.php' + - '.php-cs-fixer.dist.php' permissions: contents: read diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 09dc6d45..2a82ac30 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,29 +1,23 @@ -permissions: - contents: read +name: static analysis on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - + paths: &paths + - 'src/**' + - 'config/**' + - '.github/workflows/static.yml' + - 'psalm*.xml' + - 'composer.json' push: - branches: [ 'master' ] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' + branches: ['master'] + 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 430255de..75342349 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -1,21 +1,17 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: - push: - branches: - - master - - main - paths: - - '.github/**.yml' - - '.github/**.yaml' pull_request: - paths: + paths: &paths - '.github/**.yml' - '.github/**.yaml' + push: + branches: ['master'] + paths: *paths permissions: - actions: read # Required by zizmor when reading workflow metadata through the API. - contents: read # Required to read workflow files. + actions: read # Required by zizmor when reading workflow metadata through the API + contents: read # Required to read workflow files jobs: zizmor: