build.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. tests:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. php: [7.1, 7.2, 7.3]
  9. env:
  10. CODECEPTION_VERSION: '3.0.x-dev'
  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://github.com/consolidation/Robo/releases/download/1.4.12/robo.phar
  22. php robo.phar prepare
  23. composer update
  24. - name: Run test suite
  25. run: |
  26. php robo.phar test cli
  27. php robo.phar test "unit -g core"
  28. php robo.phar test "tests/unit/Codeception/Constraints/"
  29. php robo.phar test "tests/unit/Codeception/Module/AssertsTest.php"
  30. - name: run tests with 2.5 branch
  31. run: |
  32. CODECEPTION_VERSION=2.5.x-dev php robo.phar prepare
  33. composer update
  34. php robo.phar test cli
  35. php robo.phar test "unit -g core"
  36. php robo.phar test "tests/unit/Codeception/Constraints/"
  37. php robo.phar test "tests/unit/Codeception/Module/AssertsTest.php"