Skip to content

Commit

Permalink
move e2e tests to independent job
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Oct 15, 2023
1 parent 5790c91 commit ba34840
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Expand Up @@ -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 }}
Expand Down
38 changes: 38 additions & 0 deletions .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
2 changes: 1 addition & 1 deletion tests/e2e/Codeception_Basic/composer.json
Expand Up @@ -14,7 +14,7 @@
}
},
"require": {
"infection/infection": "0.26.6",
"infection/infection": "0.25.0",
"infection/codeception-adapter": "dev-master"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/Codeception_With_Suite_Overridings/composer.json
Expand Up @@ -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": {
Expand Down

0 comments on commit ba34840

Please sign in to comment.