No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CI.yml 1.1KB

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. fail-fast: false
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: shivammathur/setup-php@v2
  13. with:
  14. php-version: ${{ matrix.php-versions }}
  15. extensions: gd, mbstring, pcov, zip
  16. ini-values: max_execution_time=600, memory_limit=-1
  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 ^4.4
  33. - name: Archive code coverage results
  34. uses: actions/upload-artifact@v2
  35. with:
  36. name: coverage
  37. path: tests/coverage