-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
8491550
commit ce56198
Showing
4 changed files
with
107 additions
and
220 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
name: PHP | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '3.5' | ||
- '3.6' | ||
push: null | ||
|
||
permissions: {} | ||
|
||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
name: '${{ matrix.php }} / Symfony ${{ matrix.symfony_version }} / ${{ matrix.dependencies }} / ${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
os: | ||
- 'ubuntu-22.04' | ||
php: | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
dependencies: | ||
- 'lowest' | ||
- 'highest' | ||
symfony_version: | ||
- '~5.4.9' | ||
- '~6.3.0' | ||
include: | ||
- os: 'windows-2022' | ||
php: '8.1' | ||
dependencies: 'highest' | ||
symfony_version: '~6.3.0' | ||
exclude: | ||
- os: 'ubuntu-22.04' | ||
php: '8.0' | ||
dependencies: 'lowest' | ||
symfony_version: '~6.3.0' | ||
- os: 'ubuntu-22.04' | ||
php: '8.0' | ||
dependencies: 'highest' | ||
symfony_version: '~6.3.0' | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
|
||
- uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: '--with=symfony/console:${{ matrix.symfony_version }}' | ||
|
||
- run: composer exec -- phpunit --testsuite EndToEnd | ||
|
||
- run: composer exec -- phpunit --testsuite Integration | ||
|
||
- run: composer exec -- phpunit --testsuite Unit | ||
|
||
static_analysis: | ||
name: Static analysis | ||
strategy: | ||
matrix: | ||
include: | ||
- php: '8.1' | ||
symfony_version: '~6.3.0' | ||
dependencies: 'highest' | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
|
||
- uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: '--with=symfony/console:${{ matrix.symfony_version }}' | ||
|
||
- run: composer normalize --dry-run | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: .php-cs-fixer.cache | ||
key: php-cs-fixer-cache | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: /tmp/phpstan | ||
key: phpstan-cache | ||
|
||
- run: composer run crunz:analyze |
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