Skip to content

Commit

Permalink
Merge b0337bf into 9d82dd0
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 11, 2020
2 parents 9d82dd0 + b0337bf commit 139f26f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 51 deletions.
102 changes: 53 additions & 49 deletions .github/workflows/code_checks.yaml
Original file line number Diff line number Diff line change
@@ -1,80 +1,84 @@
# inspired at https://github.com/Symplify/Symplify/blob/master/.github/workflows/code_checks.yaml
name: Code_Checks

on:
- pull_request
pull_request: null
push:
branches:
- master

jobs:
ecs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4']

name: PHP ${{ matrix.php }} tests
steps:
-
name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v2
# required for "git tag" presence for MonorepoBuilder split and ChangelogLinker git tags resolver; default is 1
- run: git fetch --depth=100000 origin

-
name: Setup PHP
uses: shivammathur/setup-php@v1
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
with:
php-version: 7.3
php-version: ${{ matrix.php }}
coverage: none

-
name: Install
run:
composer install --no-progress
- run: composer install --no-progress
- run: vendor/bin/phpunit

-
name: Run
run:
composer check-cs
test_lowest_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

phpstan:
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
with:
php-version: 7.2
coverage: none

- run: composer update --no-progress --prefer-lowest
- run: vendor/bin/phpunit

ecs:
runs-on: ubuntu-latest

steps:
-
name: Checkout code
uses: actions/checkout@v2

-
name: Setup PHP
uses: shivammathur/setup-php@v1
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
with:
php-version: 7.3
coverage: none

-
name: Install
run:
composer install --no-progress
- run: composer install --no-progress
- run: composer check-cs

-
name: Run
run:
composer phpstan
phpstan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
with:
php-version: 7.3
coverage: none

- run: composer install --no-progress
- run: composer phpstan

rector:
runs-on: ubuntu-latest

steps:
-
name: Checkout code
uses: actions/checkout@v2

-
name: Setup PHP
uses: shivammathur/setup-php@v1
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
with:
php-version: 7.3
coverage: none

-
name: Install
run:
composer install --no-progress

-
name: Run
run:
composer rector
- run: composer install --no-progress
- run: composer rector
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ php:
- 7.4

before_script:
- git --version
# disable xdebug if not coverage
- phpenv config-rm xdebug.ini

script:
Expand Down
2 changes: 2 additions & 0 deletions src/Process/GitProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public function wait(?callable $callback = null): int
$gitErrorEvent = new GitErrorEvent($this->gitWrapper, $this, $this->gitCommand);
$this->dispatchEvent($gitErrorEvent);

dump($runtimeException);

throw new GitException($runtimeException->getMessage(), $runtimeException->getCode(), $runtimeException);
}

Expand Down

0 comments on commit 139f26f

Please sign in to comment.