mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
Fix GitHub action (#17869)
This commit is contained in:

committed by
GitHub

parent
f69670fb65
commit
93f74bfd04
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
# image: postgres:9.6
|
# image: postgres:9.6
|
||||||
# env:
|
# env:
|
||||||
# POSTGRES_USER: postgres
|
# POSTGRES_USER: postgres
|
||||||
# POSTGRES_PASSWORD:
|
# POSTGRES_PASSWORD: postgres
|
||||||
# POSTGRES_DB: yiitest
|
# POSTGRES_DB: yiitest
|
||||||
# ports:
|
# ports:
|
||||||
# - 5432/tcp
|
# - 5432/tcp
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
|
php: ['5.4', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Generate french locale
|
- name: Generate french locale
|
||||||
@ -41,19 +41,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install PHP
|
- name: Install PHP
|
||||||
uses: shivammathur/setup-php@v1
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
extensions: apc, curl, mbstring, dom, intl, mysql, pgsql, memcached, pdo, pdo_sqlite, imagick
|
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached, mysql, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite
|
||||||
ini-values: date.timezone='UTC'
|
ini-values: date.timezone='UTC'
|
||||||
- name: Install Memcached
|
- name: Install Memcached
|
||||||
uses: niden/actions-memcached@v7
|
uses: niden/actions-memcached@v7
|
||||||
- name: Install Postgres
|
- name: Install Postgres
|
||||||
uses: harmon758/postgresql-action@v1
|
uses: nyaruka/postgis-action@v1
|
||||||
with:
|
with:
|
||||||
postgresql version: 9.6
|
postgresql version: 9.6
|
||||||
postgresql db: yiitest
|
postgresql db: yiitest
|
||||||
postgresql user: postgres
|
postgresql user: postgres
|
||||||
|
postgresql password: postgres
|
||||||
- name: Create mysql db
|
- name: Create mysql db
|
||||||
run: mysql -uroot -proot -e 'CREATE DATABASE `yiitest`;'
|
run: mysql -uroot -proot -e 'CREATE DATABASE `yiitest`;'
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
@ -77,7 +78,7 @@ jobs:
|
|||||||
if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2'
|
if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2'
|
||||||
- name: PHP Unit tests
|
- name: PHP Unit tests
|
||||||
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP
|
run: vendor/bin/phpunit --verbose --exclude-group $PHPUNIT_EXCLUDE_GROUP
|
||||||
if: matrix.php == '7.0' || matrix.php == '5.6'
|
if: matrix.php == '7.0' || matrix.php == '5.6' || matrix.php == '5.5' || matrix.php == '5.4'
|
||||||
- name: Code coverage
|
- name: Code coverage
|
||||||
run: |
|
run: |
|
||||||
wget https://scrutinizer-ci.com/ocular.phar
|
wget https://scrutinizer-ci.com/ocular.phar
|
||||||
@ -93,7 +94,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install PHP
|
- name: Install PHP
|
||||||
uses: shivammathur/setup-php@v1
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: 7.2
|
php-version: 7.2
|
||||||
- name: Get composer cache directory
|
- name: Get composer cache directory
|
||||||
|
Reference in New Issue
Block a user