Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
on:
pull_request:
paths:
paths: &paths
- 'src/**'
- '.github/workflows/bc.yml'
- 'composer.json'
push:
branches: ['master']
paths:
- 'src/**'
- '.github/workflows/bc.yml'
- 'composer.json'
paths: *paths

name: backwards compatibility

Expand All @@ -21,7 +18,5 @@ jobs:
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.5']
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
paths:
paths: &paths
- 'bin/**'
- 'config/**'
- 'resources/**'
Expand All @@ -12,15 +12,7 @@ on:

push:
branches: ['master']
paths:
- 'bin/**'
- 'config/**'
- 'resources/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/build.yml'
- 'composer.json'
- 'phpunit.xml.dist'
paths: *paths

name: build

Expand All @@ -45,7 +37,7 @@ jobs:

steps:
- name: Checkout.
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -57,7 +49,6 @@ jobs:
- name: Install Composer dependencies + required yiisoft/db and yiisoft/db-sqlite
uses: yiisoft/actions/install-packages@master
with:
composer-root-version: 2.0.0
packages: >-
['db', 'db-sqlite']

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
paths:
paths: &paths
- 'bin/**'
- 'config/**'
- 'resources/**'
Expand All @@ -11,14 +11,7 @@ on:

push:
branches: ['master']
paths:
- 'bin/**'
- 'config/**'
- 'resources/**'
- 'src/**'
- '.github/workflows/composer-require-checker.yml'
- 'composer.json'
- 'composer-require-checker.json'
paths: *paths

name: Composer require checker

Expand All @@ -34,4 +27,3 @@ jobs:
['8.1', '8.2', '8.3', '8.4', '8.5']
required-packages: >-
['db']
composer-root-version: 2.0.0
68 changes: 10 additions & 58 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,26 @@
on:
pull_request:
paths:
paths: &paths
- 'resources/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/mutation.yml'
- 'composer.json'
- 'infection.json.dist'

push:
branches: ['master']
paths:
- 'src/**'
- '.github/workflows/mutation.yml'
- 'composer.json'
- 'infection.json.dist'
paths: *paths

name: mutation test
name: mutation

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
mutation:
name: PHP ${{ matrix.php }}

env:
extensions: pdo, pdo_pgsql, pdo_sqlite

runs-on: ubuntu-latest

strategy:
matrix:
php:
- 8.5

services:
postgres:
image: postgres:18
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: yiitest
ports:
- 5432:5432
options: --name=postgres --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3

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

- name: Install PHP.
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
ini-values: date.timezone='UTC'
coverage: pcov

- name: Install Composer dependencies
uses: ramsey/composer-install@v3

- name: Install required yiisoft/db and yiisoft/db-pgsql
uses: yiisoft/actions/install-packages@master
with:
composer-root-version: 2.0.1
packages: >-
['db', 'db-pgsql']

- name: Run infection.
run: |
vendor/bin/infection --threads=2 --ignore-msi-with-no-mutations --test-framework-options="--testsuite=Pgsql"
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
tests:
uses: yiisoft/actions/.github/workflows/db-mutation.yml@master
1 change: 0 additions & 1 deletion .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ jobs:
php: '8.1'
required-packages: >-
['db']
composer-root-version: 2.0.0
10 changes: 2 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
paths:
paths: &paths
- 'bin/**'
- 'src/**'
- '.github/workflows/static.yml'
Expand All @@ -9,12 +9,7 @@ on:

push:
branches: ['master']
paths:
- 'bin/**'
- 'src/**'
- '.github/workflows/static.yml'
- 'psalm*.xml'
- 'composer.json'
paths: *paths

name: Static analysis

Expand All @@ -30,4 +25,3 @@ jobs:
['8.1', '8.2', '8.3', '8.4']
required-packages: >-
['db']
composer-root-version: 2.0.0
Loading