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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: sudo locale-gen fr_FR.UTF-8

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

- name: Install PHP.
uses: shivammathur/setup-php@v2
Expand All @@ -52,7 +52,7 @@ jobs:
run: vendor/bin/phpunit ${{ env.PHPUNIT_COMMAND }}

- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .github/workflows/ci-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

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

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -61,7 +61,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Create MS SQL Database
run: docker exec -i mssql ${{ matrix.mssql.mssql-tool }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
Expand All @@ -75,7 +75,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

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

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -59,7 +59,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/ci-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

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

- name: Install dependencies.
run: composer update $DEFAULT_COMPOSER_FLAGS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

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

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -52,7 +52,7 @@ jobs:
run: vendor/bin/phpunit --group oci --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

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

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
Expand All @@ -60,7 +60,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
4 changes: 2 additions & 2 deletions .github/workflows/ci-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
Expand All @@ -48,7 +48,7 @@ jobs:

- name: Upload coverage to Codecov.
if: matrix.php == '7.4'
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
51 changes: 51 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
- pull_request
- push

name: static analysis

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

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

env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi"
EXTENSIONS: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, curl, dom, imagick, intl, mbstring, mcrypt, memcached

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]

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

- name: Install PHP.
uses: shivammathur/setup-php@v2
with:
coverage: none
extensions: ${{ env.EXTENSIONS }}
ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
tools: cs2pr, pie

- name: Update composer.
run: composer self-update

- name: Install dependencies with composer.
run: composer update $DEFAULT_COMPOSER_FLAGS ${{ matrix.php == 8.5 && '--ignore-platform-reqs' || '' }}

- name: Static analysis PHP 7.x
if: matrix.php == '7.3' || matrix.php == '7.4'
run: vendor/bin/phpstan analyse --configuration=phpstan-7x.dist.neon --error-format=checkstyle | cs2pr

- name: Static analysis PHP 8.x
if: matrix.php != '7.3' && matrix.php != '7.4'
run: vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr
Loading
Loading