diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c6ef86ee..11f1979b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} @@ -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: @@ -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: @@ -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 }}