phpunit.yml 747 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: PHPUnit
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. jobs:
  8. phpunit:
  9. name: PHPUnit
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. php:
  14. - '7.1'
  15. - '7.2'
  16. - '7.3'
  17. - '7.4'
  18. - '8.0'
  19. - '8.1'
  20. steps:
  21. - uses: shivammathur/setup-php@v2
  22. with:
  23. php-version: ${{ matrix.php }}
  24. coverage: none
  25. extensions: gmp, bcmath
  26. tools: composer
  27. - uses: actions/checkout@v2
  28. - name: Setup problem matchers
  29. run: |
  30. echo "::add-matcher::${{ runner.tool_cache }}/php.json"
  31. echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
  32. - run: composer install
  33. - run: vendor/bin/phpunit