Skip to content

Commit

Permalink
Update workflows (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Jul 28, 2024
1 parent cbd3f16 commit 6f3c8b0
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 174 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
38 changes: 16 additions & 22 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 All @@ -38,31 +35,28 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.3

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
MSSQL_PID: Developer
ports:
- 1433:1433
options: --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
options: --name=mssql --health-cmd="/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Checkout.
uses: actions/checkout@v3

- name: Create MS SQL Database.
run: docker exec -i mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
run: docker exec -i mssql /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand Down
32 changes: 13 additions & 19 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 All @@ -38,9 +35,6 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
Expand Down
32 changes: 13 additions & 19 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 All @@ -38,9 +35,6 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
Expand Down
34 changes: 14 additions & 20 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 All @@ -38,17 +35,14 @@ jobs:

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.1
- 8.2
- 8.3

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
Loading

0 comments on commit 6f3c8b0

Please sign in to comment.