tests.yaml 644 B

123456789101112131415161718192021
  1. name: Tests
  2. on: [push, pull_request]
  3. jobs:
  4. phpunit:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. php-version: [7.1, 7.2, 7.3]
  9. composer-flags: [null, --prefer-lowest]
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-node@v1
  13. - uses: shivammathur/setup-php@v2
  14. with:
  15. php-version: ${{ matrix.php-version }}
  16. tools: pecl
  17. extensions: weakref-beta
  18. coverage: none
  19. - run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --prefer-dist --ansi
  20. - run: npm install
  21. - run: ./vendor/bin/phpunit --color=always