Skip to content

Commit

Permalink
[BUILD] Move travis tasks to GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Nov 30, 2019
1 parent 3f34ed3 commit 0db14b6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push, pull_request]
name: Quality assurance
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHPStan
uses: "docker://oskarstark/phpstan-ga"
with:
args: analyse

php-cs-fixer:
name: PHP CS Fixer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHP-CS-Fixer
uses: "docker://oskarstark/php-cs-fixer-ga"
with:
args: --diff --dry-run

composer-normalize:
name: composer normalize
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: composer normalize
uses: "docker://localheinz/composer-normalize-action"
28 changes: 10 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,23 @@ env:
- SYMFONY_DEPRECATIONS_HELPER=max[self]=0
- TARGET=test

stages:
- lint
- test

matrix:
fast_finish: true
include:
- stage: lint
php: 7.3
- php: 7.3
env: TARGET=lint
- stage: lint
php: 7.3
env: TARGET=phpstan
- stage: lint
php: 7.3
- php: 7.3
env: TARGET=checkdeps
- stage: test
php: 7.2
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest"
- stage: test
php: 7.3
env: SYMFONY_VERSION=3.4.*
- stage: test
php: 7.3
- php: 7.3
env: SYMFONY_VERSION=4.2.*
- php: 7.3
env: SYMFONY_VERSION=4.3.*
- php: 7.3
env: SYMFONY_VERSION=4.4.*
- php: 7.3
env: SYMFONY_VERSION=5.0.*
allow_failures:
- php: 7.3
env: TARGET=checkdeps
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ lint:
checkdeps:
vendor/bin/composer-require-checker check composer.json

phpstan:
vendor/bin/phpstan analyse

test:
vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
3 changes: 0 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ parameters:
- src
- tests

autoload_files:
- vendor-bin/test/vendor/autoload.php

ignoreErrors:
# Symfony DI
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::fixXmlConfig\(\).#'
Expand Down

0 comments on commit 0db14b6

Please sign in to comment.