-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters