Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
37 changes: 9 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ jobs:
name: PHP ${{ matrix.php }}

env:
COVERAGE_DRIVER: ${{ matrix.php < 8.1 && 'xdebug' || 'pcov' }}
IGNORE_PLATFORM_REQS: false
COVERAGE_DRIVER: ${{ matrix.php == 8.6 && 'none' || matrix.php < 8.1 && 'xdebug' || 'pcov' }}

runs-on: ubuntu-22.04

services: &memcached-service
services:
memcached:
image: memcached:1.6@sha256:e2a8683c7fbb73d12dce8082525adf9df857765970e639bd9f4705acc31dfcba
ports:
Expand All @@ -67,9 +66,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6]
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved

steps: &build-steps
steps:
- name: Checkout.
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -79,17 +78,17 @@ jobs:
run: sudo locale-gen fr_FR.UTF-8

- name: Setup PHP with Composer.
uses: yiisoft/yii2-actions/actions/php-setup@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/actions/php-setup@master
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved
with:
composer-root-version: 2.0.x-dev
coverage-driver: ${{ env.COVERAGE_DRIVER }}
extensions: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, ${{ env.PHP_EXTENSIONS }}
ignore-platform-reqs: ${{ env.IGNORE_PLATFORM_REQS }}
ignore-platform-reqs-php-version: "[8.6]"
ini-values: ${{ env.PHP_INI_VALUES }}, session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}

- name: Run PHPUnit tests.
uses: yiisoft/yii2-actions/actions/phpunit@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/actions/phpunit@master
with:
coverage-driver: ${{ env.COVERAGE_DRIVER }}
coverage-token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -115,7 +114,7 @@ jobs:
persist-credentials: false

- name: Setup PHP with Composer.
uses: yiisoft/yii2-actions/actions/php-setup@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/actions/php-setup@master
with:
composer-root-version: 2.0.x-dev
coverage-driver: none
Expand All @@ -124,24 +123,6 @@ jobs:
php-version: ${{ matrix.php }}

- name: Run PHPUnit tests.
uses: yiisoft/yii2-actions/actions/phpunit@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/actions/phpunit@master
with:
exclude-group: ${{ env.PHPUNIT_EXCLUDE_GROUP }}

phpunit-nightly:
name: PHP ${{ matrix.php }}

env:
COVERAGE_DRIVER: none
IGNORE_PLATFORM_REQS: true

runs-on: ubuntu-22.04

services: *memcached-service

strategy:
fail-fast: false
matrix:
php: [8.6]

steps: *build-steps
9 changes: 5 additions & 4 deletions .github/workflows/ci-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
tests:
name: MariaDB tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mariadb-${{ github.ref }}
Expand All @@ -49,14 +49,15 @@ jobs:
database-versions: '["10.4","latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[7.4, 8.6]"
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved
phpunit-group: mysql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-dev:
name: MariaDB tests
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mariadb-dev-${{ github.ref }}
Expand All @@ -69,5 +70,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: "[8.0, 8.1, 8.2, 8.3, 8.4, 8.5]"
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved
phpunit-group: mysql
9 changes: 5 additions & 4 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
tests:
name: MSSQL tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mssql-${{ github.ref }}
Expand All @@ -52,14 +52,15 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
docker exec -i database /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q "IF DB_ID(N'yiitest') IS NULL CREATE DATABASE yiitest;"
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[7.4, 8.6]"
phpunit-group: mssql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-dev:
name: MSSQL tests
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mssql-dev-${{ github.ref }}
Expand All @@ -75,5 +76,5 @@ jobs:
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
docker exec -i database /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P 'YourStrong!Passw0rd' -Q "IF DB_ID(N'yiitest') IS NULL CREATE DATABASE yiitest;"
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: "[8.0, 8.1, 8.2, 8.3, 8.4, 8.5]"
phpunit-group: mssql
9 changes: 5 additions & 4 deletions .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
tests:
name: MySQL tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mysql-${{ github.ref }}
Expand All @@ -49,14 +49,15 @@ jobs:
database-versions: '["5.7","latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[7.4, 8.6]"
phpunit-group: mysql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-dev:
name: MySQL tests
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: mysql-dev-${{ github.ref }}
Expand All @@ -69,5 +70,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_mysql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: "[8.0, 8.1, 8.2, 8.3, 8.4, 8.5]"
phpunit-group: mysql
5 changes: 3 additions & 2 deletions .github/workflows/ci-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
tests:
name: Oracle tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: oracle-${{ github.ref }}
Expand All @@ -51,7 +51,8 @@ jobs:
extensions: curl, intl, oci8, pdo, pdo_oci
hook: docker exec -i database sqlplus -s system/oracle@//localhost/FREE < tests/data/oci/optimize_for_tests.sql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[7.4, 8.6]"
phpunit-group: oci
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
jobs:
tests:
name: PostgreSQL tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: pgsql-${{ github.ref }}
Expand All @@ -49,14 +49,15 @@ jobs:
database-versions: '["10","11","12","13","14","15","16","17","latest"]'
extensions: curl, intl, pdo, pdo_pgsql
os: '["ubuntu-22.04"]'
php-version: '["7.4","8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[7.4, 8.6]"
phpunit-group: pgsql
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-dev:
name: PostgreSQL tests
uses: yiisoft/yii2-actions/.github/workflows/database.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: pgsql-dev-${{ github.ref }}
Expand All @@ -69,5 +70,5 @@ jobs:
database-versions: '["latest"]'
extensions: curl, intl, pdo, pdo_pgsql
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
php-version: "[8.0, 8.1, 8.2, 8.3, 8.4, 8.5]"
phpunit-group: pgsql
9 changes: 5 additions & 4 deletions .github/workflows/ci-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,29 @@ on:
jobs:
tests:
name: SQLite tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/phpunit.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/phpunit.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: sqlite-${{ github.ref }}
coverage-driver: xdebug
enable-concurrency: true
extensions: curl, intl, pdo, pdo_sqlite
os: '["ubuntu-22.04","windows-latest"]'
php-version: '["7.4","8.5"]'
php-version: "[7.4, 8.5]"
phpunit-group: sqlite
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-dev:
name: SQLite tests
uses: yiisoft/yii2-actions/.github/workflows/phpunit.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/phpunit.yml@master
with:
composer-root-version: 2.0.x-dev
concurrency-group: sqlite-dev-${{ github.ref }}
coverage-driver: none
enable-concurrency: true
extensions: curl, intl, pdo, pdo_sqlite
os: '["ubuntu-22.04"]'
php-version: '["8.0","8.1","8.2","8.3","8.4"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[8.0, 8.1, 8.2, 8.3, 8.4, 8.6]"
phpunit-group: sqlite
4 changes: 2 additions & 2 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ on:

jobs:
php-cs-fixer:
uses: yiisoft/yii2-actions/.github/workflows/php-cs-fixer.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/php-cs-fixer.yml@master
with:
composer-root-version: 2.0.x-dev
configuration: .php-cs-fixer.dist.php
php-version: '["7.4"]'
php-version: "[7.4]"
5 changes: 3 additions & 2 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ on:

jobs:
rector:
uses: yiisoft/yii2-actions/.github/workflows/rector.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/rector.yml@master
with:
composer-root-version: 2.0.x-dev
php-version: '["8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[8.6]"
2 changes: 1 addition & 1 deletion .github/workflows/scorecard-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
contents: read # Required to check out the repository.
id-token: write # Required to sign published results with the GitHub OIDC token.
security-events: write # Required to upload SARIF results to code scanning.
uses: yiisoft/yii2-actions/.github/workflows/scorecard.yml@2b3b3497b6d88911a3cd5b3b48ebcf322b9d0dc7 # master
uses: yiisoft/yii2-actions/.github/workflows/scorecard.yml@master
Comment thread
terabytesoftw marked this conversation as resolved.
Resolved
secrets:
SCORECARD_TOKEN: ${{ secrets.SCORECARD_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ on:

jobs:
phpstan:
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@master
with:
composer-root-version: 2.0.x-dev
configuration: phpstan.dist.neon
concurrency-group: phpstan-${{ github.ref }}
extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached
php-version: '["8.5"]'
ignore-platform-reqs-php-version: "[8.6]"
php-version: "[8.6]"

phpstan-7x:
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@d90cdb5bb58df697c808bb66928864f574c6d07b # master
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@master
with:
composer-root-version: 2.0.x-dev
configuration: phpstan-7x.dist.neon
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ permissions:

jobs:
zizmor:
uses: yiisoft/yii2-actions/.github/workflows/zizmor.yml@2b3b3497b6d88911a3cd5b3b48ebcf322b9d0dc7 # master
uses: yiisoft/yii2-actions/.github/workflows/zizmor.yml@master
Loading