Refactor ci-oracle.yml to use yiisoft/yii2-actions. (#20732)

This commit is contained in:
Wilmer Arambula
2026-02-07 10:50:49 -03:00
committed by GitHub
parent 0d2dcaf5f6
commit 29202e083c

View File

@@ -1,4 +1,3 @@
---
name: ci-oracle name: ci-oracle
permissions: permissions:
@@ -35,54 +34,23 @@ on:
push: *ignore-paths push: *ignore-paths
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
tests: tests:
name: PHP ${{ matrix.php }}-oci name: Oracle tests with coverage
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
env: with:
COVERAGE_DRIVER: ${{ matrix.php == 7.4 && 'xdebug' || 'none' }} concurrency-group: oracle-${{ github.ref }}
PHP_EXTENSIONS: curl, intl, oci8, pdo, pdo_oci coverage-driver: xdebug
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC' database-env: '{"ORACLE_ALLOW_REMOTE":"true"}'
PHPUNIT_GROUP: oci database-health-cmd: "bash -lc 'echo > /dev/tcp/localhost/1521'"
XDEBUG_MODE: coverage database-health-retries: 60
database-image: wnameless/oracle-xe-11g-r2
runs-on: ubuntu-latest database-port: "1521"
database-type: oracle
strategy: database-versions: '["latest"]'
matrix: extensions: curl, intl, oci8, pdo, pdo_oci
php: [7.4] os: '["ubuntu-latest"]'
php-version: '["7.4"]'
services: phpunit-group: oci
oci: secrets:
image: wnameless/oracle-xe-11g-r2:latest CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
ports:
- 1521:1521
options: >-
--name=oci
steps:
- name: Monitor action permissions.
if: runner.os != 'Windows'
uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Checkout.
uses: actions/checkout@v5
- name: Setup PHP with Composer.
uses: ./.github/actions/php-setup
with:
coverage-driver: ${{ env.COVERAGE_DRIVER }}
extensions: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }}, session.save_path="${{ runner.temp }}"
php-version: ${{ matrix.php }}
- name: Run PHPUnit tests.
uses: ./.github/actions/phpunit
with:
coverage-driver: ${{ env.COVERAGE_DRIVER }}
coverage-token: ${{ secrets.CODECOV_TOKEN }}
group: ${{ env.PHPUNIT_GROUP }}