Skip to content

Commit

Permalink
[ci] separate e2e test with changed attributes (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 12, 2022
1 parent c35cc97 commit dd96863
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
1 change: 0 additions & 1 deletion build/target-repository/.github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
directory:
- 'e2e/attributes'
- 'e2e/define-constant'
- 'e2e/dont-execute-code'
- 'e2e/finalize'
Expand Down
38 changes: 38 additions & 0 deletions build/target-repository/.github/workflows/e2e_diff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow runs system tests: Use the Rector application from the source
# checkout to process "fixture" projects in tests/system-tests
# to see if those can be processed successfully
name: End to End tests that expect diff

on:
pull_request: null
push:
branches:
- main

jobs:
end_to_end_with_diff:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
directory:
- 'e2e/attributes'

name: End to end test with diff - ${{ matrix.directory }}

steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none

-
run: composer install --ansi
working-directory: ${{ matrix.directory }}

-
run: ../../bin/rector --ansi
working-directory: ${{ matrix.directory }}

0 comments on commit dd96863

Please sign in to comment.