Skip to content

Commit

Permalink
Reduce tests running (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Jun 30, 2024
1 parent 032642e commit 37d36b8
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 156 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/active-record.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
31 changes: 13 additions & 18 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-mariadb.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-mssql.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-mysql.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-oracle.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-pgsql.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 9 additions & 16 deletions .github/workflows/db-sqlite.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'composer.json'

push:
branches: ['master']
paths:
- 'src/**'
- 'config/**'
Expand All @@ -19,15 +20,13 @@ 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: >-
['ubuntu-latest']
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
Expand Down

0 comments on commit 37d36b8

Please sign in to comment.