Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Jan 28, 2024
1 parent 6b36d71 commit c2e8740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ jobs:
composer update --no-interaction --no-progress --prefer-dist --prefer-${{ matrix.release }}
- name: Run tests
run: |
docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm php${{ matrix.php }} \
docker compose -f docker-compose.yml -f docker-compose.ci.yml run --rm php${{ matrix.php }}${{ env.DEBUG }} \
vendor/bin/phpunit ${{ env.COVERAGE }}
env:
DEBUG: ${{ matrix.coverage && '-debug' || '' }}
COVERAGE: ${{ matrix.coverage && '--coverage-clover=coverage.xml' || '' }}
- name: Upload code coverage
uses: codecov/codecov-action@v3
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ services:
- .:/var/www/html:delegated
- ~/.cache/composer/files:/root/.composer/cache/files
php8.3:
image: ghcr.io/staudenmeir/php:8.3
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
- ~/.cache/composer/files:/root/.composer/cache/files
php8.3-debug:
image: ghcr.io/staudenmeir/php:8.3
working_dir: /var/www/html
volumes:
Expand Down

0 comments on commit c2e8740

Please sign in to comment.