Skip to content

Commit

Permalink
build: migrate from TravisCI to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpozzi committed Oct 21, 2021
1 parent 0f81887 commit 11fba9e
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 44 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yaml
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
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/Snappy/Generator/LoggableGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Wraps a GeneratorInterface instance to log the media generations using the
* configured logger.
*
* @deprecated Logging capability is now directly integrated in Snappy. You should use it rather than this Decorator.
* @deprecated 1.5.0 Logging capability is now directly integrated in Snappy. You should use it rather than this Decorator.
*/
class LoggableGenerator implements GeneratorInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Snappy/LoggableGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* This class was unfortunately moved in v1.5.0, thus creating a BC break.
*
* @deprecated
* @deprecated v1.5.0
*/
class LoggableGenerator extends BaseGenerator
{
Expand Down
8 changes: 3 additions & 5 deletions tests/fixtures/config/base.yml
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 }

0 comments on commit 11fba9e

Please sign in to comment.