From 37d36b89f303d4284d1cf5099be9b3c51a20f9b5 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sun, 30 Jun 2024 23:54:24 +0700 Subject: [PATCH] Reduce tests running (#856) --- .github/workflows/active-record.yml | 25 ++++++--------- .github/workflows/build.yml | 25 ++++++--------- .../workflows/composer-require-checker.yml | 31 ++++++++----------- .github/workflows/db-mariadb.yml | 25 ++++++--------- .github/workflows/db-mssql.yml | 25 ++++++--------- .github/workflows/db-mysql.yml | 25 ++++++--------- .github/workflows/db-oracle.yml | 25 ++++++--------- .github/workflows/db-pgsql.yml | 25 ++++++--------- .github/workflows/db-sqlite.yml | 25 ++++++--------- .github/workflows/rector.yml | 14 ++++----- .github/workflows/static.yml | 3 +- 11 files changed, 92 insertions(+), 156 deletions(-) diff --git a/.github/workflows/active-record.yml b/.github/workflows/active-record.yml index f6fa38f8d..3d33ff60e 100644 --- a/.github/workflows/active-record.yml +++ b/.github/workflows/active-record.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/active-record.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/active-record.yml' + - 'composer.json' name: active-record diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0b8a4c70..33eb4b837 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/build.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/build.yml' + - 'composer.json' name: build diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index ae5893f54..ee9a02789 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -1,25 +1,20 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'config/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'phpunit.xml.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - 'config/**' + - '.github/workflows/composer-require-checker.yml' + - 'composer.json' + - 'composer-require-checker.json' name: Composer require checker diff --git a/.github/workflows/db-mariadb.yml b/.github/workflows/db-mariadb.yml index c1d69c9d2..8cf35ccb9 100644 --- a/.github/workflows/db-mariadb.yml +++ b/.github/workflows/db-mariadb.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-mariadb.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-mariadb.yml' + - 'composer.json' name: db-mariadb diff --git a/.github/workflows/db-mssql.yml b/.github/workflows/db-mssql.yml index ea2fc5468..ea6944b84 100644 --- a/.github/workflows/db-mssql.yml +++ b/.github/workflows/db-mssql.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-mssql.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-mssql.yml' + - 'composer.json' name: db-mssql diff --git a/.github/workflows/db-mysql.yml b/.github/workflows/db-mysql.yml index 11e37c112..144f472b0 100644 --- a/.github/workflows/db-mysql.yml +++ b/.github/workflows/db-mysql.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-mysql.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-mysql.yml' + - 'composer.json' name: db-mysql diff --git a/.github/workflows/db-oracle.yml b/.github/workflows/db-oracle.yml index 9d2eada31..1d8d1fe01 100644 --- a/.github/workflows/db-oracle.yml +++ b/.github/workflows/db-oracle.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-oracle.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-oracle.yml' + - 'composer.json' name: db-oracle diff --git a/.github/workflows/db-pgsql.yml b/.github/workflows/db-pgsql.yml index dc6c63ad7..30749f111 100644 --- a/.github/workflows/db-pgsql.yml +++ b/.github/workflows/db-pgsql.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-pgsql.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-pgsql.yml' + - 'composer.json' name: db-pgsql diff --git a/.github/workflows/db-sqlite.yml b/.github/workflows/db-sqlite.yml index e649337d8..7ab288657 100644 --- a/.github/workflows/db-sqlite.yml +++ b/.github/workflows/db-sqlite.yml @@ -1,23 +1,16 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - '.github/workflows/db-sqlite.yml' + - 'composer.json' push: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + branches: ['master'] + paths: + - 'src/**' + - '.github/workflows/db-sqlite.yml' + - 'composer.json' name: db-sqlite diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 35411d0ae..0f4555627 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -1,13 +1,11 @@ on: pull_request: - paths-ignore: - - 'docs/**' - - 'README.md' - - 'CHANGELOG.md' - - '.gitignore' - - '.gitattributes' - - 'infection.json.dist' - - 'psalm.xml' + paths: + - 'src/**' + - 'config/**' + - '.github/workflows/rector.yml' + - 'rector.php' + - 'composer.json' name: rector diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 91ee880dd..4b4fa7a59 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -8,6 +8,7 @@ on: - 'composer.json' push: + branches: ['master'] paths: - 'src/**' - 'config/**' @@ -19,7 +20,6 @@ name: static analysis jobs: psalm: - if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }} uses: yiisoft/actions/.github/workflows/psalm.yml@master with: os: >- @@ -27,7 +27,6 @@ jobs: php: >- ['8.1', '8.2'] psalm83: - if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.fork }} uses: yiisoft/actions/.github/workflows/psalm.yml@master with: psalm-config: psalm83.xml