Add names to tests
* Fix minor corrections. * Add shell bash. * Fix minor corrections.
This commit is contained in:
parent
3fe4c34d62
commit
0df2109420
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -6,9 +6,10 @@ name: build
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: PHP ${{ matrix.php }}
|
||||
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
|
||||
|
||||
env:
|
||||
extensions: curl, dom, gd, imagick, intl, json, mbstring, libxml, xml, xmlwriter
|
||||
extensions: dom, json, gd, imagick
|
||||
key: cache-v1
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
@ -52,12 +53,15 @@ jobs:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: ${{ env.extensions }}
|
||||
ini-values: date.timezone='UTC'
|
||||
coverage: xdebug
|
||||
tools: composer:v2, pecl
|
||||
|
||||
|
||||
- name: Determine composer cache directory on Linux
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-dir)"
|
||||
|
||||
- name: Determine composer cache directory on Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: ECHO "::set-env name=COMPOSER_CACHE_DIR::~\AppData\Local\Composer"
|
||||
|
||||
- name: Cache dependencies installed with composer
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
@ -67,10 +71,11 @@ jobs:
|
||||
php${{ matrix.php }}-composer-${{ matrix.dependencies }}-
|
||||
|
||||
- name: Install dependencies with composer php PHP [5.6 - 7.4]
|
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
|
||||
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
|
||||
|
||||
- name: Run tests with codeception
|
||||
run: |
|
||||
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
|
||||
php -S 127.0.0.1:8080 -t public > ./runtime/yii.log 2>&1 &
|
||||
vendor/bin/codecept run
|
||||
vendor/bin/codecept run
|
||||
shell: bash
|
Loading…
x
Reference in New Issue
Block a user