Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BadJacky committed Apr 8, 2024
1 parent 611435b commit ecb849e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: >
dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo${{ matrix.os != 'windows-latest' && ',pcntl,imagick' || '' }}
coverage: none
extensions: ${{ matrix.os == 'windows-latest' && 'dom, xdebug, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo' || 'dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, xdebug,exif, iconv, fileinfo, pcntl, imagick' }}
coverage: xdebug

- name: Setup problem matchers
run: |
Expand All @@ -43,4 +42,9 @@ jobs:
composer install --no-interaction
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
run: composer test-coverage
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ./coverage
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ Homestead.yaml
Homestead.json
/.vagrant
.phpunit.result.cache
coverage/

.DS_Store
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
]
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
"test": "vendor/bin/pest",
"test-coverage": "php -d xdebug.mode=coverage vendor/bin/pest --coverage-html coverage"
},
"config": {
"sort-packages": true,
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</testsuites>
<source>
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</source>
Expand Down

0 comments on commit ecb849e

Please sign in to comment.