From 47e8ec9bd5dd57f03f757618d552071ace4f3f36 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sun, 28 Jan 2024 01:56:55 +0100 Subject: [PATCH] ci --- .gitattributes | 20 ++++++++++---------- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitattributes b/.gitattributes index 11176bc..169a96a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,10 +1,10 @@ -/.docker export-ignore -/.github export-ignore -/tests export-ignore -.gitattributes export-ignore -.gitignore export-ignore -.scrutinizer.yml export-ignore -docker-compose.ci.yml export-ignore -docker-compose.yml export-ignore -phpstan.neon.dist export-ignore -phpunit.xml.dist export-ignore +/.docker export-ignore +/.github export-ignore +/tests export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.scrutinizer.yml export-ignore +docker-compose.ci.yml export-ignore +docker-compose.yml export-ignore +phpstan.neon.dist export-ignore +phpunit.xml.dist export-ignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f704829..80b9df5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: include: - php: 8.3 release: stable - coverage: xdebug + coverage: true steps: - name: Cache Composer dependencies @@ -37,7 +37,7 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Pull image + - name: Pull image if exists run: docker pull ${{ env.IMAGE }}:${{ env.TAG }} continue-on-error: true id: pull @@ -54,9 +54,9 @@ jobs: - name: Run tests run: docker compose -f docker-compose.ci.yml run --rm ${{ env.CONTAINER }} vendor/bin/phpunit ${{ env.COVERAGE }} env: - COVERAGE: ${{ matrix.coverage == 'xdebug' && '--coverage-clover=coverage.xml' || '' }} + COVERAGE: ${{ matrix.coverage && '--coverage-clover=coverage.xml' || '' }} - name: Upload code coverage uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - if: matrix.coverage == 'xdebug' && env.CODECOV_TOKEN + if: matrix.coverage && env.CODECOV_TOKEN