main.yml 608 B

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