-
Notifications
You must be signed in to change notification settings - Fork 20
Add PHP 8 compatibility and Use github actions as test CI #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dbu
merged 13 commits into
symfony-cmf:master
from
alexander-schranz:feature/add-gitlab-actions
Jan 22, 2021
Merged
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a43fad5
Add PHP 8 compatibility and Use github actions as test CI
alexander-schranz 37ab547
Fix env vars
alexander-schranz 6f1b4de
User other composer install script
alexander-schranz 3f662b3
Simplify composer install
alexander-schranz ee326c1
Apply suggestions from code review
alexander-schranz 91340d5
Remove duplciated test run
alexander-schranz 1d6f2bb
Use SYMFONY_REQUIRE and symfony flex to test agains different symfony…
alexander-schranz d913f44
Set matrix correctly for symfony-version
alexander-schranz 823cce4
Set symfony version * for all tasks
alexander-schranz f7ca85f
Update .github/workflows/test-application.yaml
dbu 07073d9
Fix lowest test phpunit error
alexander-schranz 335d1ef
Merge branch 'feature/add-gitlab-actions' of github.com:alexander-sch…
alexander-schranz 3caeee4
Update .github/workflows/test-application.yaml
dbu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,58 @@ | ||
name: Test application | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
- '[0-9]+.x' | ||
- '[0-9]+.[0-9]+' | ||
- '[0-9]+.[0-9]+.x' | ||
|
||
jobs: | ||
test: | ||
name: 'PHP ${{ matrix.php-version }}, Symfony ${{ matrix.symfony-version }}' | ||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.symfony-deprecation-helper }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
dbu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
include: | ||
- php-version: '7.1' | ||
composer-flags: '--prefer-lowest' | ||
dbu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
symfony-version: '^3.4' | ||
symfony-deprecation-helper: 'weak' | ||
|
||
- php-version: '7.2' | ||
- php-version: '7.3' | ||
- php-version: '7.4' | ||
symfony-version: '^4.4' | ||
- php-version: '7.4' | ||
symfony-version: '5.0.*' | ||
- php-version: '8.0' | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install and configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
tools: 'composer:v2' | ||
|
||
- name: Require Specific Symfony Version | ||
if: ${{ matrix.symfony-version }} | ||
run: composer require --no-update symfony/symfony:${{ matrix.symfony-version }} | ||
dbu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: --prefer-dist | ||
|
||
- name: Execute test cases | ||
run: make test |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.