Skip to content

Commit

Permalink
use luya helpers library, add testsuite 2.0 (#2074)
Browse files Browse the repository at this point in the history
* use luya helpers library, add testsuite 2.0

* exception

* tests

* use helper library

* not contains

* change empty value test

* changelog
  • Loading branch information
nadar authored Feb 2, 2021
1 parent a996368 commit 3ae26b6
Show file tree
Hide file tree
Showing 52 changed files with 279 additions and 7,527 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ 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
DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction"
CC_TEST_REPORTER_ID: e104088a64c54b2a68debe43e4600b48f53a73441e99449223a9fa08c070cf97
jobs:

Expand All @@ -16,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['7.1', '7.2', '7.3', '7.4']
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']

services:
mysql:
Expand All @@ -41,6 +40,7 @@ jobs:
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'
coverage: xdebug

## install composer
- name: Install dependencies
Expand All @@ -55,7 +55,7 @@ jobs:
## 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'
if: matrix.php == '8.0' || 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
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*~.nib
*.launch
.DS_Store
composer.lock

### ECLIPSE
.metadata
Expand Down Expand Up @@ -35,5 +36,4 @@ scripts/.sass_log
node_modules/
/repos/
/devconfig.json

luya
9 changes: 2 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"require":{
"luyadev/luya-composer":"^1.0",
"luyadev/yii-helpers":"^1.0",
"yiisoft/yii2":"~2.0.15",
"curl/curl":"^2.0 || ^1.0",
"phpmailer/phpmailer":"^6.0",
Expand All @@ -35,7 +36,7 @@
"giggsey/libphonenumber-for-php":"^8.11"
},
"require-dev":{
"luyadev/luya-testsuite":"^1.0",
"luyadev/luya-testsuite":"^2.0",
"nadar/github-markdown-fixer":"^1.0",
"unglue/client":"^1.5"
},
Expand All @@ -49,15 +50,9 @@
"extra":{
"asset-installer-paths":{
"bower-asset-library":"vendor/bower"
},
"branch-alias":{
"dev-master":"1.0.x-dev"
}
},
"config":{
"platform":{
"php":"7.1.3"
},
"fxp-asset":{
"enabled":false
}
Expand Down
Loading

0 comments on commit 3ae26b6

Please sign in to comment.