Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jul 27, 2024
1 parent cbd3f16 commit 355181b
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 160 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'
paths:
- 'src/**'
- '.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/**'
- '.github/workflows/composer-require-checker.yml'
- 'composer.json'
- 'composer-require-checker.json'

name: Composer require checker

Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/db-mssql.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-mssql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-mssql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

name: db-mssql

Expand Down Expand Up @@ -48,7 +45,7 @@ jobs:

services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
image: mcr.microsoft.com/mssql/server:2022-latest
env:
SA_PASSWORD: YourStrong!Passw0rd
ACCEPT_EULA: Y
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/db-mysql.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-mysql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-mysql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

name: db-mysql

Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/db-oracle.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-oracle.yml'
- 'composer.json'
- 'phpunit.xml.dist'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-oracle.yml'
- 'composer.json'
- 'phpunit.xml.dist'

name: db-oracle

Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/db-pgsql.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-pgsql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-pgsql.yml'
- 'composer.json'
- 'phpunit.xml.dist'

name: db-pgsql

Expand Down Expand Up @@ -48,7 +45,7 @@ jobs:

services:
postgres:
image: postgres:15
image: postgres:16
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/db-sqlite.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-sqlite.yml'
- 'composer.json'
- 'phpunit.xml.dist'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/db-sqlite.yml'
- 'composer.json'
- 'phpunit.xml.dist'

name: db-sqlite

Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'
paths:
- 'src/**'
- '.github/workflows/mutation.yml'
- 'composer.json'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'
branches: ['master']
paths:
- 'src/**'
- '.github/workflows/mutation.yml'
- 'composer.json'

name: mutation

Expand All @@ -38,11 +33,11 @@ jobs:
- ubuntu-latest

php:
- 8.1
- 8.3

services:
postgres:
image: postgres:14
image: postgres:16
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- '.github/workflows/rector.yml'
- 'composer.json'
- 'rector.php'

name: rector

Expand Down
46 changes: 20 additions & 26 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
paths:
- 'src/**'
- '.github/workflows/static.yml'
- 'psalm*.xml'
- 'composer.json'

push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
branches: ['master']
paths:
- 'src/**'
- '.github/workflows/static.yml'
- 'psalm*.xml'
- 'composer.json'

name: static analysis

Expand All @@ -28,17 +23,16 @@ concurrency:
jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
strategy:
matrix:
php: [8.1, 8.2]
config: [psalm.xml]
include:
- php: 8.3
config: psalm83.xml
with:
os: >-
['ubuntu-latest']
php: >-
['${{ matrix.php }}']
psalm-config: >-
${{ matrix.config }}
['8.1', '8.2']
psalm83:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
with:
psalm-config: psalm83.xml
os: >-
['ubuntu-latest']
php: >-
['8.3']

0 comments on commit 355181b

Please sign in to comment.