-
Notifications
You must be signed in to change notification settings - Fork 147
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
088006b
commit 0cb5813
Showing
8 changed files
with
992 additions
and
326 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,160 @@ | ||
# https://docs.github.com/en/actions | ||
|
||
name: "CI" | ||
|
||
on: | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- "master" | ||
|
||
env: | ||
COMPOSER_ROOT_VERSION: 1.99 | ||
|
||
jobs: | ||
coding-standards: | ||
name: "Coding Standards" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.2" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.3.4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
coverage: "none" | ||
extensions: "mbstring" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate --strict" | ||
|
||
|
||
- name: "Install dependencies with composer" | ||
run: "composer update --no-interaction --no-progress" | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.3.4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
coverage: "none" | ||
extensions: "mbstring" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer update --no-interaction --no-progress && composer i --working-dir=ci" | ||
|
||
- name: "Run vimeo/psalm" | ||
run: "ci/vendor/bin/psalm --threads=4" | ||
|
||
tests: | ||
name: "Tests" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "5.3" | ||
- "5.4" | ||
- "5.5" | ||
- "5.6" | ||
- "7.0" | ||
- "7.1" | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
- "8.0" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.3.4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
coverage: "none" | ||
extensions: "mbstring" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer update --no-interaction --no-progress" | ||
|
||
- name: "Run unit tests" | ||
run: "vendor/bin/phpunit" | ||
|
||
windows-tests: | ||
name: "Windows tests" | ||
|
||
runs-on: "windows-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.3.4" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
coverage: "none" | ||
extensions: "mbstring" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer update --no-interaction --no-progress" | ||
|
||
- name: "Run unit tests" | ||
run: "vendor/bin/phpunit tests/AssertTest.php" | ||
|
||
code-coverage: | ||
name: "Code Coverage" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2.3.4" | ||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@2.9.0" | ||
with: | ||
coverage: "pcov" | ||
extensions: "mbstring" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer update --no-interaction --no-progress" | ||
|
||
- name: "Run unit tests" | ||
run: "vendor/bin/phpunit --coverage-clover=coverage.clover" | ||
|
||
- name: "Upload coverage" | ||
run: "wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover" |
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,2 +1,3 @@ | ||
vendor/ | ||
/composer.lock | ||
.phpunit.result.cache |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.