main.yml 631 B

123456789101112131415161718192021222324252627282930
  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. coverage: none
  17. - name: Validate composer.json and composer.lock
  18. run: composer validate
  19. - name: Install dependencies
  20. run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
  21. - name: Run test suite
  22. run: php vendor/bin/codecept run