forked from KnpLabs/KnpSnappyBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migrate from TravisCI to Github actions
- Loading branch information
Showing
5 changed files
with
64 additions
and
44 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,59 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
pull_request: ~ | ||
push: ~ | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
- name: Validate composer.json | ||
run: composer validate --strict --no-check-lock | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- description: 'No Symfony specified' | ||
php: '7.2' | ||
- description: 'No Symfony specified' | ||
php: '7.3' | ||
- description: 'No Symfony specified' | ||
php: '7.4' | ||
- description: 'Lowest deps' | ||
php: '7.2' | ||
composer_option: '--prefer-lowest' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: max[self]=0 | ||
- description: 'Dev deps' | ||
php: '7.4' | ||
dev: true | ||
name: PHP ${{ matrix.php }} tests (${{ matrix.description }}) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- run: | | ||
phpenv config-rm xdebug.ini || true | ||
composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-main | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: composer-${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }} | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
- run: | | ||
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json; | ||
if: matrix.symfony | ||
- run: composer config minimum-stability dev && composer config prefer-stable true | ||
if: matrix.dev | ||
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }} | ||
- run: vendor/bin/simple-phpunit -v |
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
framework: | ||
secret: ThisIsNotReallyASecretSoPleaseChangeIt | ||
router: { resource: "%kernel.project_dir%/config/routing.yml", utf8: true } | ||
csrf_protection: true | ||
validation: { enabled: true, enable_annotations: true } | ||
session: ~ | ||
secret: ThisIsNotReallyASecretSoPleaseChangeIt | ||
router: { resource: "%kernel.project_dir%/config/routing.yml", utf8: true } | ||
validation: { enabled: true, enable_annotations: false } |