diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1a31bf..f07acf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,32 +1,28 @@ +name: build + on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' - + paths: &paths + - 'public/**' + - 'src/**' + - 'config/**' + - 'tests/**' + - 'codeception.yml' + - 'composer.json' + - 'yii' + - 'yii.bat' + - '.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 -permissions: - contents: read - jobs: codeception: name: PHP ${{ matrix.php }}-${{ matrix.os }} diff --git a/.github/workflows/composer-dependency-analyzer.yml b/.github/workflows/composer-dependency-analyzer.yml index 5934560..39c693e 100644 --- a/.github/workflows/composer-dependency-analyzer.yml +++ b/.github/workflows/composer-dependency-analyzer.yml @@ -1,34 +1,28 @@ +name: Composer dependency analyzer + on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' - + paths: &paths + - 'public/**' + - 'src/**' + - 'config/**' + - 'tests/**' + - 'composer.json' + - 'composer-dependency-analyser.php' + - 'yii' + - 'yii.bat' + - '.github/workflows/composer-dependency-analyzer.yml' push: branches: ['master'] - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: *paths -name: Composer dependency analyzer +permissions: + contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -permissions: - contents: read - jobs: analyzer: name: PHP ${{ matrix.php }}-${{ matrix.os }} diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 5b64d01..b71a842 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -1,21 +1,25 @@ name: Code Style -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true +on: + pull_request: + paths: + - 'public/**' + - 'src/**' + - 'config/**' + - 'tests/**' + - '.php-cs-fixer.php' + - 'rector.php' + - 'composer.json' + - 'yii' + - 'yii.bat' + - '.github/workflows/cs.yml' permissions: contents: read -on: - pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'psalm.xml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: cs-fix: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 89c90fb..ed32e7a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,32 +1,27 @@ +name: static analysis + on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'phpunit.xml.dist' - + paths: &paths + - 'public/**' + - 'src/**' + - 'config/**' + - 'psalm.xml' + - 'composer.json' + - 'yii' + - 'yii.bat' + - '.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 -permissions: - contents: read - jobs: psalm: name: PHP ${{ matrix.php }}-${{ matrix.os }} @@ -41,6 +36,7 @@ jobs: - "8.2" - "8.3" - "8.4" + - "8.5" steps: - name: Checkout diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 430255d..6ff2a77 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -1,21 +1,21 @@ 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 + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: zizmor: