From 64bbf895782d047947f300612caa64ed998df56f Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Fri, 26 Jan 2024 20:56:52 +0100 Subject: [PATCH] ci --- .github/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cd90e1..6f889f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,6 @@ jobs: steps: - uses: actions/checkout@v4 - run: echo "TAG=${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }}" >> $GITHUB_ENV - - run: echo ${{ env.TAG }} - uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -30,28 +29,28 @@ jobs: - run: | docker pull ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }} continue-on-error: true - env: - TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} +# env: +# TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} id: pull - run: | docker compose build php${{ matrix.php }} docker tag belongs-to-through-php${{ matrix.php }} ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }} docker push ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }} - env: - TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} +# env: +# TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} if: steps.pull.outcome != 'success' - uses: actions/cache@v3 with: 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 }} - env: - TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} +# env: +# TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} - 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 - env: - TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} +# env: +# TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }} - uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}