From fd76bc4f24d1e3137baf40e633edc926400ebcf5 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 2 May 2024 22:05:25 +0300 Subject: [PATCH] Improve CI (#61) --- .github/workflows/bc.yml | 23 +++++++++++++++++-- .github/workflows/build.yml | 3 ++- .../workflows/composer-require-checker.yml | 3 ++- .github/workflows/mutation.yml | 3 ++- .github/workflows/rector.yml | 2 +- .github/workflows/static.yml | 10 +++++++- composer.json | 2 +- psalm83.xml | 21 +++++++++++++++++ 8 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 psalm83.xml diff --git a/.github/workflows/bc.yml b/.github/workflows/bc.yml index ba3e9ef..f8cc564 100644 --- a/.github/workflows/bc.yml +++ b/.github/workflows/bc.yml @@ -1,6 +1,25 @@ on: - - pull_request - - push + pull_request: + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' + push: + branches: ['master'] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' + - '.gitignore' + - '.gitattributes' + - 'infection.json.dist' + - 'phpunit.xml.dist' + - 'psalm.xml' name: backwards compatibility diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0dde6b6..2f198c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -28,4 +29,4 @@ jobs: os: >- ['ubuntu-latest', 'windows-latest'] php: >- - ['7.4', '8.0', '8.1'] + ['7.4', '8.0', '8.1', '8.2', '8.3'] diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 07cc5e9..b4d1cf9 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -11,6 +11,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -30,4 +31,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['7.4', '8.0', '8.1', '8.2'] + ['7.4', '8.0', '8.1', '8.2', '8.3'] diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index c1aca98..8150499 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -9,6 +9,7 @@ on: - 'psalm.xml' push: + branches: ['master'] paths-ignore: - 'docs/**' - 'README.md' @@ -26,6 +27,6 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1'] + ['8.2'] secrets: STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index bd79331..35411d0 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -20,4 +20,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.2'] + ['8.3'] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d904be7..899b7a2 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -29,7 +29,7 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2', '8.3'] + ['8.1', '8.2'] psalm74-80: uses: yiisoft/actions/.github/workflows/psalm.yml@master with: @@ -38,3 +38,11 @@ jobs: ['ubuntu-latest'] php: >- ['7.4', '8.0'] + psalm83: + uses: yiisoft/actions/.github/workflows/psalm.yml@master + with: + psalm-config: psalm83.xml + os: >- + ['ubuntu-latest'] + php: >- + ['8.3'] diff --git a/composer.json b/composer.json index cb32db2..b264d64 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "rector/rector": "^1.0.0", "roave/infection-static-analysis-plugin": "^1.16", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^4.30|^5.21", + "vimeo/psalm": "^4.30|^5.24", "yiisoft/di": "^1.1" }, "autoload": { diff --git a/psalm83.xml b/psalm83.xml new file mode 100644 index 0000000..ee80eb3 --- /dev/null +++ b/psalm83.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + +