mirror of
https://github.com/yiisoft/yii2.git
synced 2026-02-19 16:21:52 +01:00
Refactor ci-oracle.yml to use yiisoft/yii2-actions. (#20732)
This commit is contained in:
68
.github/workflows/ci-oracle.yml
vendored
68
.github/workflows/ci-oracle.yml
vendored
@@ -1,4 +1,3 @@
|
||||
---
|
||||
name: ci-oracle
|
||||
|
||||
permissions:
|
||||
@@ -35,54 +34,23 @@ on:
|
||||
|
||||
push: *ignore-paths
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: PHP ${{ matrix.php }}-oci
|
||||
|
||||
env:
|
||||
COVERAGE_DRIVER: ${{ matrix.php == 7.4 && 'xdebug' || 'none' }}
|
||||
PHP_EXTENSIONS: curl, intl, oci8, pdo, pdo_oci
|
||||
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
|
||||
PHPUNIT_GROUP: oci
|
||||
XDEBUG_MODE: coverage
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php: [7.4]
|
||||
|
||||
services:
|
||||
oci:
|
||||
image: wnameless/oracle-xe-11g-r2:latest
|
||||
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 }}
|
||||
name: Oracle tests with coverage
|
||||
uses: yiisoft/yii2-actions/.github/workflows/database.yml@master
|
||||
with:
|
||||
concurrency-group: oracle-${{ github.ref }}
|
||||
coverage-driver: xdebug
|
||||
database-env: '{"ORACLE_ALLOW_REMOTE":"true"}'
|
||||
database-health-cmd: "bash -lc 'echo > /dev/tcp/localhost/1521'"
|
||||
database-health-retries: 60
|
||||
database-image: wnameless/oracle-xe-11g-r2
|
||||
database-port: "1521"
|
||||
database-type: oracle
|
||||
database-versions: '["latest"]'
|
||||
extensions: curl, intl, oci8, pdo, pdo_oci
|
||||
os: '["ubuntu-latest"]'
|
||||
php-version: '["7.4"]'
|
||||
phpunit-group: oci
|
||||
secrets:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user