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
1 parent
75fe0ee
commit a3bf751
Showing
3 changed files
with
81 additions
and
26 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,80 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0'] | ||
name: PHP ${{ matrix.php-versions }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set Timezone | ||
uses: szenius/set-timezone@v1.0 | ||
with: | ||
timezoneLinux: "Europe/Paris" | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: json | ||
ini-values: date.timezone=Europe/Paris | ||
- name: Check PHP Version | ||
run: php -v | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | ||
# Docs: https://getcomposer.org/doc/articles/scripts.md | ||
|
||
- name: Run test suite | ||
run: composer run-script tests | ||
|
||
analysis: | ||
name: Analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set Timezone | ||
uses: szenius/set-timezone@v1.0 | ||
with: | ||
timezoneLinux: "Europe/Paris" | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.4 | ||
extensions: json | ||
ini-values: date.timezone=Europe/Paris | ||
|
||
- name: Install Infection | ||
run: composer global require infection/infection | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
- name: Run type coverage | ||
run: composer run-script psalm | ||
|
||
- name: Run Infection | ||
run: | | ||
git fetch --depth=1 origin $GITHUB_BASE_REF | ||
~/.composer/vendor/bin/infection --logger-github --git-diff-filter=AM --min-msi=90 |
This file was deleted.
Oops, something went wrong.
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