ci.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: "CI"
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - "master"
  7. schedule:
  8. - cron: "42 3 * * *"
  9. jobs:
  10. phpunit:
  11. name: "PHPUnit"
  12. runs-on: "ubuntu-20.04"
  13. strategy:
  14. matrix:
  15. php-version:
  16. - "5.4"
  17. - "5.5"
  18. - "5.6"
  19. - "7.0"
  20. - "7.1"
  21. - "7.2"
  22. - "7.3"
  23. - "7.4"
  24. dependencies:
  25. - "highest"
  26. include:
  27. - dependencies: "lowest"
  28. php-version: "5.4"
  29. steps:
  30. - name: "Checkout"
  31. uses: "actions/checkout@v2"
  32. with:
  33. fetch-depth: 2
  34. - name: "Install PHP"
  35. uses: "shivammathur/setup-php@v2"
  36. with:
  37. php-version: "${{ matrix.php-version }}"
  38. coverage: "none"
  39. ini-values: "zend.assertions=1"
  40. - name: "Install dependencies with Composer"
  41. uses: "ramsey/composer-install@v1"
  42. with:
  43. dependency-versions: "${{ matrix.dependencies }}"
  44. - name: "Run PHPUnit"
  45. run: "vendor/bin/phpunit"