diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 616e6294..a56d4a98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index fb9dfd55..58107cb7 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -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 @@ -41,6 +32,7 @@ jobs: - 8.0 - 8.1 - 8.2 + - 8.3 steps: - name: Checkout. diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index d35ec33d..843f69ab 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -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 @@ -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 diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 35411d0a..43e45926 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -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 diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index b7778798..1660a1ad 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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