Skip to content

Commit

Permalink
chore(coverage-diff): use docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Aug 30, 2024
1 parent bf03dd2 commit dce75b6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- main
- chore/code-coverage # remove this after merged to main
jobs:
coverage-diff:
runs-on: ubuntu-latest
Expand All @@ -17,13 +18,17 @@ jobs:
extensions: xdebug
- name: Install Dependencies
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
- uses: php-actions/phpunit@v3
- uses: KengoTODA/actions-setup-docker-compose@4677f0d86d41e623c9c6e11e1d910976da297bc0
with:
php_version: 8.2
bootstrap: vendor/autoload.php
configuration: phpunit.xml.dist
args: --coverage-xml cov/xml --coverage-html cov/html --coverage-clover cov/xml/clover.xml
version: "9.3.0"
version: '2.14.2'
- name: Set Permissions for Coverage Directory
run: |
mkdir -p cov/json cov/xml cov/html
chmod -R 777 cov
- name: "Create Empty env File for Docker"
run: touch .env
- name: PHPUnit
run: docker-compose run phpunit --coverage-xml cov/xml --coverage-html cov/html --coverage-clover=cov/xml/clover.xml
- name: Get Cover
uses: orgoro/coverage@3f13a558c5af7376496aa4848bf0224aead366ac
with:
Expand Down

0 comments on commit dce75b6

Please sign in to comment.