CI.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. php-versions: ['7.2', '7.3', '7.4']
  9. steps:
  10. - uses: actions/checkout@v1
  11. - uses: shivammathur/setup-php@v1
  12. with:
  13. php-version: ${{ matrix.php-versions }}
  14. extensions: mbstring, gd, zip
  15. ini-values: max_execution_time=600, memory_limit=-1
  16. coverage: pcov
  17. - name: Install dependencies
  18. run: |
  19. curl -sS https://getcomposer.org/installer | php -- --filename=composer
  20. composer install
  21. - name: Check code quality
  22. run: |
  23. vendor/bin/code-quality
  24. - name: Test against highest versions
  25. run: |
  26. vendor/bin/unit-test
  27. vendor/bin/functional-test
  28. - name: Test against lowest versions
  29. run: |
  30. composer update --prefer-lowest
  31. vendor/bin/unit-test
  32. vendor/bin/functional-test ^3.4
  33. - name: Archive code coverage results
  34. uses: actions/upload-artifact@v1
  35. with:
  36. name: coverage
  37. path: tests/coverage