Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
wip

wip

wip
  • Loading branch information
dg committed Apr 27, 2021
1 parent 8b34f71 commit 6ee31b8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Tests

on: [push, pull_request]

env:
php-options: -C -d opcache.enable=0
php-extensions: fileinfo, intl

jobs:
tests:
runs-on: ${{ matrix.os }}
Expand All @@ -20,10 +24,10 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: fileinfo, intl
extensions: ${{ env.php-extensions }}

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester tests -p ${{ matrix.sapi }} -s -C
- run: vendor/bin/tester tests -p ${{ matrix.sapi }} -s ${{ env.php-options }}
- if: failure()
uses: actions/upload-artifact@v2
with:
Expand All @@ -40,10 +44,10 @@ jobs:
with:
php-version: 8.0
coverage: none
extensions: fileinfo, intl
extensions: ${{ env.php-extensions }}

- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
- run: vendor/bin/tester tests -s -C
- run: vendor/bin/tester tests -s ${{ env.php-options }}


code_coverage:
Expand All @@ -55,10 +59,10 @@ jobs:
with:
php-version: 8.0
coverage: none
extensions: fileinfo, intl
extensions: ${{ env.php-extensions }}

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src
- run: vendor/bin/tester tests -p phpdbg -s ${{ env.php-options }} --coverage ./coverage.xml --coverage-src ./src
- run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
- env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6ee31b8

Please sign in to comment.