Update main-ci.yml

This commit is contained in:
Shao Yu-Lung (Allen) 2021-04-07 13:11:25 +08:00 committed by GitHub
parent 2a1e534735
commit 8142ead2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@ jobs:
env: env:
PHP_VERSION: ${{ matrix.php_version }} PHP_VERSION: ${{ matrix.php_version }}
run: | run: |
set -eux;
cp env-example .env cp env-example .env
sed -i -- '99,313s/=false/=true/g' .env sed -i -- '99,313s/=false/=true/g' .env
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
@ -37,7 +38,9 @@ jobs:
sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env sed -i -- 's/IONCUBE=true/IONCUBE=false/g' .env
sed -i -- 's/V8JS=true/V8JS=false/g' .env sed -i -- 's/V8JS=true/V8JS=false/g' .env
docker-compose build ${{ matrix.service }} docker-compose build ${{ matrix.service }}
docker-compose run --rm --no-deps -- ${{ matrix.service }} php -m docker-compose up -d --no-deps -- ${{ matrix.service }}
docker-compose exec -- ${{ matrix.service }} php -m
docker-compose down
build-other: build-other:
runs-on: ubuntu-latest runs-on: ubuntu-latest