From b7d8de765f27da29293e34ca9add7d06c5777624 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Fri, 26 Jan 2024 21:16:30 +0100 Subject: [PATCH] ci --- .docker/php8.1.Dockerfile | 2 +- .docker/php8.2.Dockerfile | 2 +- .github/workflows/ci.yml | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.docker/php8.1.Dockerfile b/.docker/php8.1.Dockerfile index 6964018..d7eaa3d 100644 --- a/.docker/php8.1.Dockerfile +++ b/.docker/php8.1.Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.1-cli +FROM php:8.1.27-cli RUN apt-get update && \ apt-get install -y unzip diff --git a/.docker/php8.2.Dockerfile b/.docker/php8.2.Dockerfile index dbf5dec..306ff35 100644 --- a/.docker/php8.2.Dockerfile +++ b/.docker/php8.2.Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.2-cli +FROM php:8.2.15-cli RUN apt-get update && \ apt-get install -y unzip diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46f1f6a..96a033d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: php: [ 8.3 ] # TODO - release: [ stable ] # TODO + release: [ stable, lowest ] include: - php: 8.3 release: stable @@ -41,9 +41,8 @@ jobs: path: ~/.cache/composer/files key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - run: docker compose -f docker-compose.ci.yml run --rm php${{ matrix.php }} composer update --no-interaction --no-progress --prefer-dist --prefer-${{ matrix.release }} - - run: | - PHPUNIT_FLAGS=$([ "${{ matrix.coverage }}" == "xdebug" ] && echo "--coverage-clover=coverage.xml" || echo "") - docker compose -f docker-compose.ci.yml run --rm php${{ matrix.php }} vendor/bin/phpunit $PHPUNIT_FLAGS + - run: docker compose -f docker-compose.ci.yml run --rm php${{ matrix.php }} vendor/bin/phpunit ${{ env.COVERAGE }} + COVERAGE: ${{ matrix.coverage == 'xdebug' && '--coverage-clover=coverage.xml' || '' }} - uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}