tests.yaml 587 B

12345678910111213141516171819
  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.3, 7.4, 8.0]
  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. coverage: none
  17. - run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --prefer-dist --ansi
  18. - run: npm install
  19. - run: ./vendor/bin/phpunit --color=always