Skip to content

Commit

Permalink
Update workflows (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Jul 28, 2024
1 parent 326a5a2 commit e4795a9
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 81 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/build.yml'
- 'composer.json'
- 'phpunit.xml.dist'

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

name: build

Expand All @@ -30,17 +26,12 @@ jobs:
COMPOSER_ROOT_VERSION: 1.0.0
EXTENSIONS: pdo, pdo_pgsql

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
os:
- ubuntu-latest

php:
- 8.0
- 8.1
- 8.2
- 8.3

pgsql:
- 9
Expand All @@ -52,6 +43,14 @@ jobs:
- 15
- 16

include:
- php: 8.0
pgsql: 16
- php: 8.1
pgsql: 16
- php: 8.2
pgsql: 16

services:
postgres:
image: postgres:${{ matrix.pgsql }}
Expand Down
28 changes: 10 additions & 18 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
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'

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'

name: Composer require checker

Expand All @@ -41,6 +32,7 @@ jobs:
- 8.0
- 8.1
- 8.2
- 8.3

steps:
- name: Checkout.
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 test

Expand All @@ -35,11 +30,11 @@ jobs:
- ubuntu-latest

php:
- 8.1
- 8.3

services:
postgres:
image: postgres:15
image: postgres:16
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
on:
pull_request:
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
27 changes: 11 additions & 16 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 Down

0 comments on commit e4795a9

Please sign in to comment.