Browse Source
- Bug #18040: Display width specification for integer data types was deprecated in MySQL 8.0.19 - Bug #15265: PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP - Bug #18232: Fail tests pgsql v-10.14, v-11.9, v-12-latesttags/2.0.38
Wilmer Arambula
4 years ago
committed by
GitHub
6 changed files with 239 additions and 4 deletions
@ -0,0 +1,80 @@
|
||||
on: |
||||
- pull_request |
||||
- push |
||||
|
||||
name: ci-mysql |
||||
|
||||
jobs: |
||||
tests: |
||||
name: PHP ${{ matrix.php-version }}-mysql-${{ matrix.mysql-version }} |
||||
env: |
||||
extensions: curl, intl, pdo, pdo_mysql |
||||
key: cache-v1 |
||||
|
||||
runs-on: ${{ matrix.os }} |
||||
|
||||
strategy: |
||||
matrix: |
||||
os: |
||||
- ubuntu-latest |
||||
|
||||
php-version: |
||||
- "7.4" |
||||
|
||||
mysql-version: |
||||
- "latest" |
||||
|
||||
services: |
||||
mysql: |
||||
image: mysql:${{ matrix.mysql-version }} |
||||
env: |
||||
MYSQL_ROOT_PASSWORD: root |
||||
MYSQL_DATABASE: yiitest |
||||
ports: |
||||
- 3306:3306 |
||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
||||
|
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
|
||||
- name: Setup cache environment |
||||
id: cache-env |
||||
uses: shivammathur/cache-extensions@v1 |
||||
with: |
||||
php-version: ${{ matrix.php-version }} |
||||
extensions: ${{ env.extensions }} |
||||
key: ${{ env.key }} |
||||
|
||||
- name: Cache extensions |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ${{ steps.cache-env.outputs.dir }} |
||||
key: ${{ steps.cache-env.outputs.key }} |
||||
restore-keys: ${{ steps.cache-env.outputs.key }} |
||||
|
||||
- name: Install PHP with extensions |
||||
uses: shivammathur/setup-php@v2 |
||||
with: |
||||
php-version: ${{ matrix.php-version }} |
||||
extensions: ${{ env.extensions }} |
||||
ini-values: date.timezone='UTC' |
||||
coverage: pcov |
||||
|
||||
- name: Determine composer cache directory |
||||
if: matrix.os == 'ubuntu-latest' |
||||
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-dir)" |
||||
|
||||
- name: Cache dependencies installed with composer |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ${{ env.COMPOSER_CACHE_DIR }} |
||||
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} |
||||
restore-keys: | |
||||
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- |
||||
|
||||
- name: Install dependencies with composer |
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader |
||||
|
||||
- name: Run mysql tests with phpunit |
||||
run: vendor/bin/phpunit --group mysql |
@ -0,0 +1,84 @@
|
||||
on: |
||||
- pull_request |
||||
- push |
||||
|
||||
name: ci-pgsql |
||||
|
||||
jobs: |
||||
tests: |
||||
name: PHP ${{ matrix.php-version }}-pgsql-${{ matrix.pgsql-version }} |
||||
env: |
||||
extensions: curl, intl, pdo, pdo_pgsql |
||||
key: cache-v1 |
||||
|
||||
runs-on: ${{ matrix.os }} |
||||
|
||||
strategy: |
||||
matrix: |
||||
os: |
||||
- ubuntu-latest |
||||
|
||||
php-version: |
||||
- "7.4" |
||||
|
||||
pgsql-version: |
||||
- "10" |
||||
- "11" |
||||
- "12" |
||||
- "13" |
||||
|
||||
services: |
||||
postgres: |
||||
image: postgres:${{ matrix.pgsql-version }} |
||||
env: |
||||
POSTGRES_USER: postgres |
||||
POSTGRES_PASSWORD: postgres |
||||
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@v2 |
||||
|
||||
- name: Setup cache environment |
||||
id: cache-env |
||||
uses: shivammathur/cache-extensions@v1 |
||||
with: |
||||
php-version: ${{ matrix.php-version }} |
||||
extensions: ${{ env.extensions }} |
||||
key: ${{ env.key }} |
||||
|
||||
- name: Cache extensions |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ${{ steps.cache-env.outputs.dir }} |
||||
key: ${{ steps.cache-env.outputs.key }} |
||||
restore-keys: ${{ steps.cache-env.outputs.key }} |
||||
|
||||
- name: Install PHP with extensions |
||||
uses: shivammathur/setup-php@v2 |
||||
with: |
||||
php-version: ${{ matrix.php-version }} |
||||
extensions: ${{ env.extensions }} |
||||
ini-values: date.timezone='UTC' |
||||
coverage: pcov |
||||
|
||||
- name: Determine composer cache directory |
||||
if: matrix.os == 'ubuntu-latest' |
||||
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-dir)" |
||||
|
||||
- name: Cache dependencies installed with composer |
||||
uses: actions/cache@v1 |
||||
with: |
||||
path: ${{ env.COMPOSER_CACHE_DIR }} |
||||
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} |
||||
restore-keys: | |
||||
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- |
||||
|
||||
- name: Install dependencies with composer |
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader |
||||
|
||||
- name: Run pgsql tests with phpunit |
||||
run: vendor/bin/phpunit --group pgsql |
Loading…
Reference in new issue