Skip to content

Commit d70ea9a

Browse files
authored
ci: flavours env must be set for all jobs (yiisoft#111)
1 parent bf308ec commit d70ea9a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/docker-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
fail-fast: false
6262
env:
6363
PHP_IMAGE_NAME: "yiisoftware/yii2-php"
64+
PHP_BASE_IMAGE_VERSION: ${{ matrix.php-base-image-version }}
65+
DOCKERFILE_FLAVOUR: ${{ matrix.dockerfile-flavour }}
66+
X_LEGACY_GD_LIB: ${{ matrix.legacy-gd-lib }}
67+
PECL_XDEBUG_INSTALL_SUFFIX: ${{ matrix.pecl-xdebug-suffix }}
6468
steps:
6569
- uses: actions/checkout@v1
6670
- name: Set version suffix
@@ -80,11 +84,6 @@ jobs:
8084
docker info
8185
docker-compose version
8286
- name: Test
83-
env:
84-
PHP_BASE_IMAGE_VERSION: ${{ matrix.php-base-image-version }}
85-
DOCKERFILE_FLAVOUR: ${{ matrix.dockerfile-flavour }}
86-
X_LEGACY_GD_LIB: ${{ matrix.legacy-gd-lib }}
87-
PECL_XDEBUG_INSTALL_SUFFIX: ${{ matrix.pecl-xdebug-suffix }}
8887
run: |
8988
echo "::group::Build output"
9089
docker-compose build --build-arg X_LEGACY_GD_LIB=$X_LEGACY_GD_LIB
@@ -94,6 +93,7 @@ jobs:
9493
docker-compose run --rm php php /tests/requirements.php
9594
docker-compose run --rm -w /yii2 php composer install --prefer-dist
9695
docker-compose run --rm -w /yii2 php php -d error_reporting="E_ALL ^ E_DEPRECATED" vendor/bin/phpunit tests/framework/ --exclude db
96+
docker images
9797
- name: Login to Docker
9898
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
9999
uses: docker/login-action@v1

0 commit comments

Comments
 (0)