main.yml 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
  9. steps:
  10. - name: Checkout code
  11. uses: actions/checkout@v2
  12. - name: Setup PHP
  13. uses: shivammathur/setup-php@v2
  14. with:
  15. php-version: ${{ matrix.php }}
  16. extensions: pdo, sqlite
  17. coverage: none
  18. - name: Validate composer.json and composer.lock
  19. run: composer validate
  20. - name: Install dependencies on PHP 7
  21. if: matrix.php < 8
  22. run: composer install --prefer-dist --no-progress --no-interaction
  23. - name: Install dependencies on PHP 8
  24. if: matrix.php == 8
  25. run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-req=php
  26. - name: Run test suite
  27. run: php vendor/bin/codecept run