Fix GitHub action
This commit is contained in:
parent
627f25c7b6
commit
d803a01405
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -56,16 +56,18 @@ jobs:
|
||||
|
||||
- name: Determine composer cache directory on Linux
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(composer config cache-dir)"
|
||||
run: |
|
||||
echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
|
||||
|
||||
- name: Determine composer cache directory on Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: ECHO "::set-env name=COMPOSER_CACHE_DIR::~\AppData\Local\Composer"
|
||||
run: |
|
||||
echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" >> $GITHUB_ENV
|
||||
|
||||
- name: Cache dependencies installed with composer
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ env.COMPOSER_CACHE_DIR }}
|
||||
path: ${{ steps.cache-env.outputs.dir }}
|
||||
key: php${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: |
|
||||
php${{ matrix.php }}-composer-${{ matrix.dependencies }}-
|
||||
@ -78,4 +80,4 @@ jobs:
|
||||
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
|
||||
shell: bash
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user