Skip to content

Bump yiisoft/yii2 from 2.0.38 to 2.0.48.1 #37

Bump yiisoft/yii2 from 2.0.38 to 2.0.48.1

Bump yiisoft/yii2 from 2.0.38 to 2.0.48.1 #37

Workflow file for this run

name: Tests
on: [push, pull_request]
env:
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --ignore-platform-reqs"
PHPUNIT_EXCLUDE_GROUP: mssql,oci,wincache,xcache,zenddata,cubrid
CC_TEST_REPORTER_ID: 25b487bd38905c7b1e537ad8f0ecd071b8077ccfd74e4373989fb6c51fd99686
jobs:
phpunit:
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['7.1', '7.2', '7.3', '7.4']
steps:
## checkout the repoistory
- name: Checkout Repo
uses: actions/checkout@v2
## Install(?) php
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached, mysql, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, sqlite
ini-values: date.timezone='UTC'
## install composer
- name: Install dependencies
run: composer install $DEFAULT_COMPOSER_FLAGS
## run unit tests
- name: PHP Unit tests for PHP
run: vendor/bin/phpunit --verbose --configuration actions.phpunit.xml
if: matrix.php == '7.4' || matrix.php == '7.3' || matrix.php == '7.2' || matrix.php == '7.0'
## unit test with coverage
- name: PHP Unit tests for PHP 7.1
run: vendor/bin/phpunit --verbose --coverage-clover=clover.xml --configuration actions.phpunit.xml
if: matrix.php == '7.1'
## coverage
- name: Code coverage
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter after-build -t clover
if: matrix.php == '7.1'
continue-on-error: true # if is fork