test.yml 680 B

1234567891011121314151617181920212223242526272829303132
  1. name: "Run unit tests"
  2. on:
  3. - push
  4. - pull_request
  5. env:
  6. COMPOSER_MEMORY_LIMIT: -1
  7. jobs:
  8. test:
  9. name: "Build"
  10. runs-on: ubuntu-latest
  11. strategy:
  12. max-parallel: 12
  13. matrix:
  14. php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', 8.3']
  15. steps:
  16. - name: Checkout repository
  17. uses: actions/checkout@v2
  18. - name: Setup PHP ${{ matrix.php }}
  19. uses: shivammathur/setup-php@v2
  20. with:
  21. php-version: ${{ matrix.php }}
  22. extensions: exif,json,mbstring,dom
  23. - name: Install composer dependencies
  24. uses: ramsey/composer-install@v2
  25. - name: Run unit tests
  26. run: ./vendor/bin/phpunit