-
Notifications
You must be signed in to change notification settings - Fork 66
Migrate travis to github actions #261
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 6 commits into
symfony-cmf:master
from
alexander-schranz:feature/github-actions
Jan 22, 2021
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
56fe4ae
Migrate travis to github actions
alexander-schranz 0060e04
Apply suggestions from code review
dbu 88f2fd0
Move the symfony * to matrix include section
alexander-schranz 12c420e
Fix name of github workflow
alexander-schranz 39edb29
Use older phpunit version for php 8
alexander-schranz 1b87988
Merge branch 'feature/github-actions' of github.com:alexander-schranz…
alexander-schranz 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,62 @@ | ||
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-require }} ${{ matrix.dependencies }}" | ||
runs-on: "ubuntu-20.04" | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php-version: "7.2" | ||
dependencies: "lowest" | ||
symfony-require: "4.4.*" | ||
|
||
- php-version: "7.4" | ||
symfony-require: "4.4.*" | ||
|
||
- php-version: "7.4" | ||
symfony-require: "5.0.*" | ||
|
||
- php-version: "8.0" | ||
symfony-require: "*" | ||
|
||
steps: | ||
- name: "Checkout project" | ||
uses: "actions/checkout@v2" | ||
|
||
- name: "Install and configure PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: "pdo, pdo_sqlite" | ||
tools: "composer:v2" | ||
|
||
- name: "Require Specific Symfony Version" | ||
if: "${{ matrix.symfony-version }}" | ||
run: "composer require --no-update symfony/symfony:${{ matrix.symfony-version }}" | ||
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
composer-options: "--prefer-dist" | ||
|
||
- name: "Execute test cases" | ||
run: | | ||
if [[ $SYMFONY_PHPUNIT_VERSION == '' ]]; then unset SYMFONY_PHPUNIT_VERSION; fi; | ||
make test | ||
env: | ||
SYMFONY_PHPUNIT_VERSION: "${{ matrix.phpunit-version }}" |
This file was deleted.
Oops, something went wrong.
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.