forked from Evozon-PHP/TissueBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
70 additions
and
1 deletion.
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,61 @@ | ||
name: "CI Tests" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
symfony: | ||
- '3.4.*' | ||
- '4.4.*' | ||
- '5.4.*' | ||
composer-flags: | ||
- '--prefer-stable' | ||
include: | ||
# Lowest Deps | ||
- php: 7.4 | ||
symfony: 3.4.* | ||
composer-flags: '--prefer-stable --prefer-lowest' | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Cache Composer packages" | ||
uses: "actions/cache@v3" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php-${{ matrix.php }}-symfony-${{ matrix.symfony }}-composer-${{ hashFiles('composer.json') }}-flags-${{ matrix.composer-flags }}" | ||
restore-keys: "php-" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php }}" | ||
tools: "composer:v2,flex" | ||
|
||
- name: "Set Composer stability" | ||
run: "composer config minimum-stability dev" | ||
|
||
- name: "Install dependencies" | ||
run: "composer update ${{ matrix.composer-flags }} --prefer-dist" | ||
env: | ||
SYMFONY_REQUIRE: "${{ matrix.symfony }}" | ||
|
||
- name: "Validate composer" | ||
run: "composer validate --strict --no-check-lock --no-check-all" | ||
|
||
- name: "Run PHPUnit Tests" | ||
run: "vendor/bin/phpunit" |
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,4 @@ | ||
.phpunit.result.cache | ||
composer.lock | ||
phpunit.xml | ||
vendor |
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