build.yml 921 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. php: [7.2, 7.3]
  9. env:
  10. CODECEPTION_VERSION: 'dev-4.2-backport-useless-test-event as 4.2.0'
  11. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - name: Setup PHP
  15. uses: shivammathur/setup-php@v2
  16. with:
  17. php-version: ${{ matrix.php }}
  18. coverage: xdebug
  19. - name: Prepare dependencies
  20. run: |
  21. wget https://robo.li/robo.phar
  22. php robo.phar prepare:dependencies
  23. composer update --prefer-source
  24. php robo.phar prepare:tests
  25. php robo.phar prepare:test-autoloading
  26. composer dump-autoload
  27. - name: Run test suite
  28. run: |
  29. php ./codecept run -c vendor/codeception/module-asserts/
  30. php ./codecept run unit -g core
  31. php ./codecept run cli