-
Notifications
You must be signed in to change notification settings - Fork 7
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
6 changed files
with
82 additions
and
38 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: [ pull_request ] | ||
|
||
env: | ||
COMPOSER_UPDATE_FLAGS: "--no-interaction --no-progress --prefer-dist " | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
name: Test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php: 7.4 # should use monolog v1 | ||
composer_update_flags: --prefer-lowest | ||
- php: 7.4 # should use monolog v2 | ||
- php: 8.0 # should use monolog v2 | ||
- php: 8.1 # should use monolog v3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
coverage: none | ||
|
||
- name: Composer dependencies | ||
run: COMPOSER_UPDATE_FLAGS+="${{matrix.composer_update_flags}}" make vendor | ||
|
||
- name: PHPUnit | ||
run: make phpunit | ||
|
||
static-analysis: | ||
runs-on: ubuntu-latest | ||
name: Static analysis | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
|
||
- name: Composer dependencies | ||
run: make vendor | ||
|
||
- name: Composer validate | ||
run: make composer-validate | ||
|
||
- name: PHPStan | ||
run: make phpstan | ||
|
||
- name: PHP CS Fixer | ||
run: make php-cs-fixer-check |
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
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
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