forked from doctrine/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing version 6 and 7 of symfony/yaml (#346)
* Allowing version 6 of symfony/yaml * allowing symfony 7 as well * another odd psalm error * psalm upgrade and fixes * psalm fix * upgrading codecov github action * adding codecov token
- Loading branch information
Showing
5 changed files
with
538 additions
and
205 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 |
---|---|---|
@@ -1,46 +1,48 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4', '8.0', '8.1', '8.2'] | ||
composer-args: ['', '--prefer-lowest'] | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, apcu | ||
ini-values: apc.enable_cli=1 | ||
coverage: xdebug | ||
- name: Install Dependencies | ||
run: | | ||
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | ||
- name: Static Analysis | ||
run: | | ||
composer phpstan | ||
composer psalm -- --shepherd | ||
- name: Code Style Check | ||
env: | ||
PHP_CS_FIXER_IGNORE_ENV: true | ||
run: composer style-check | ||
- name: Test | ||
run: composer test-with-coverage | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./tests/coverage/clover.xml | ||
verbose: true | ||
build: | ||
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ["7.4", "8.0", "8.1", "8.2"] | ||
composer-args: ["", "--prefer-lowest"] | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring, apcu | ||
ini-values: apc.enable_cli=1 | ||
coverage: xdebug | ||
- name: Install Dependencies | ||
run: | | ||
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | ||
- name: Static Analysis | ||
run: | | ||
composer phpstan | ||
composer psalm -- --shepherd | ||
- name: Code Style Check | ||
env: | ||
PHP_CS_FIXER_IGNORE_ENV: true | ||
run: composer style-check | ||
- name: Test | ||
run: composer test-with-coverage | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
files: ./tests/coverage/clover.xml | ||
verbose: true |
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
Oops, something went wrong.