tests.yml 535 B

123456789101112131415161718192021222324
  1. name: Tests
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. jobs:
  7. phpunit:
  8. strategy:
  9. matrix:
  10. php_version: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Setup PHP environment
  15. uses: shivammathur/setup-php@v2
  16. with:
  17. php-version: ${{ matrix.php_version }}
  18. coverage: xdebug
  19. - name: Install dependencies
  20. run: composer install
  21. - name: PHPUnit check
  22. run: ./vendor/bin/phpunit --coverage-text