diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7359232..125cce7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,11 +62,6 @@ jobs: - name: Run tests and generate coverage run: make test-unit - - name: Run E2E tests - env: - TERM: xterm-256color - run: make test-e2e - - name: Upload coverage results to Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml new file mode 100644 index 0000000..e9d403d --- /dev/null +++ b/.github/workflows/e2e-tests.yaml @@ -0,0 +1,38 @@ +# yamllint disable rule:line-length +# yamllint disable rule:braces + +name: E2E Tests + +on: + pull_request: + push: + branches: + - main + - master + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: [ '7.4', '8.0', '8.1' ] + coverage-driver: [ pcov ] + + name: CI with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }}, with Symfony ${{ matrix.symfony-require }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: ${{ matrix.coverage-driver }} + tools: composer:v2 + + - name: Run E2E tests + env: + TERM: xterm-256color + run: make test-e2e diff --git a/tests/e2e/Codeception_Basic/composer.json b/tests/e2e/Codeception_Basic/composer.json index 85f49ec..f0ee486 100644 --- a/tests/e2e/Codeception_Basic/composer.json +++ b/tests/e2e/Codeception_Basic/composer.json @@ -14,7 +14,7 @@ } }, "require": { - "infection/infection": "0.26.6", + "infection/infection": "0.25.0", "infection/codeception-adapter": "dev-master" }, "config": { diff --git a/tests/e2e/Codeception_With_Suite_Overridings/composer.json b/tests/e2e/Codeception_With_Suite_Overridings/composer.json index e9d4e83..c20af91 100644 --- a/tests/e2e/Codeception_With_Suite_Overridings/composer.json +++ b/tests/e2e/Codeception_With_Suite_Overridings/composer.json @@ -2,7 +2,7 @@ "require-dev": { "codeception/codeception": "^4.1.9", "codeception/module-db": "^1.1", - "infection/infection": "0.26.6", + "infection/infection": "0.25.0", "infection/codeception-adapter": "dev-master" }, "autoload": {