-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from Chris53897/feature/migratetravis-to-gh-a…
…ctions-phpunit10 feat: migrate travis to gh actions, allow phpunit10
- Loading branch information
Showing
14 changed files
with
109 additions
and
47 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,86 @@ | ||
name: Code_Checks | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.2'] | ||
stability: [ prefer-stable ] | ||
symfony-version: ['7.0.*'] | ||
include: | ||
- php: '8.0' | ||
symfony-version: 5.4.* | ||
stability: prefer-lowest | ||
- php: '8.0' | ||
symfony-version: 5.4.* | ||
stability: prefer-stable | ||
- php: '8.1' | ||
symfony-version: 6.0.* | ||
stability: prefer-stable | ||
- php: '8.2' | ||
symfony-version: 7.0.* | ||
stability: prefer-stable | ||
- php: '8.3' | ||
symfony-version: 7.0.* | ||
stability: prefer-stable | ||
|
||
name: PHP ${{ matrix.php }} - ${{ matrix.symfony-version }} - ${{ matrix.stability }} | ||
steps: | ||
# basically git clone | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | ||
|
||
# use PHP of specific version | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: pcov, curl | ||
coverage: pcov | ||
|
||
- name: Install dependencies | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | ||
run: | | ||
composer global config --no-plugins allow-plugins.symfony/flex true | ||
composer global require --no-progress --no-scripts --no-plugins symfony/flex | ||
composer update --no-interaction --prefer-dist | ||
vendor/bin/simple-phpunit install | ||
- name: Execute tests | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: 'weak' | ||
run: vendor/bin/phpunit --coverage-text | ||
|
||
|
||
cs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
coverage: none | ||
- run: | | ||
composer install --no-progress | ||
composer require friendsofphp/php-cs-fixer "^3.48" | ||
vendor/bin/php-cs-fixer | ||
psalm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
coverage: none | ||
- run: composer install --no-progress | ||
- run: vendor/bin/psalm |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* | ||
* @author Hugues Maignol <[email protected]> | ||
*/ | ||
abstract class AbstractRatioProviderTest extends TestCase | ||
abstract class AbstractRatioProvider extends TestCase | ||
{ | ||
/** | ||
* The currently tested RatioProvider. | ||
|
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
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.