-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions: merged all workflows to build.yml
- Loading branch information
Showing
5 changed files
with
70 additions
and
94 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,69 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
tags: | ||
- v* | ||
|
||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] | ||
|
||
fail-fast: false | ||
|
||
name: PHP ${{ matrix.php }} tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: json, mbstring, tokenizer, sqlite3 | ||
coverage: none | ||
|
||
- run: composer install --no-interaction | ||
- run: vendor/bin/tester tests -s -C | ||
- if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: output | ||
path: tests/**/output | ||
|
||
code-checker: | ||
name: Code Standard Checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
coverage: none | ||
|
||
- run: composer create-project nette/code-checker temp/code-checker ^3.2 --no-progress | ||
- run: php tools/code-checker.php | ||
|
||
phpstan: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] | ||
|
||
fail-fast: false | ||
|
||
name: PHP ${{ matrix.php }} PHPStan | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
|
||
- run: composer install --no-interaction | ||
- run: composer phpstan -- --no-progress |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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