diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..be5e43debb1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +# https://help.github.com/en/categories/automating-your-workflow-with-github-actions + +on: + - push + - pull_request + +name: CI + +jobs: + php-cs-fixer: + name: Static Code Analysis + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Run friendsofphp/php-cs-fixer + uses: docker://php:7.3-cli + with: + args: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose diff --git a/.travis.yml b/.travis.yml index 78eeb82894d..5c4304037bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,14 +44,3 @@ after_success: notifications: email: false - -jobs: - include: - - stage: "Static Code Analysis" - php: 7.3 - env: - - TOOL="php-cs-fixer" - install: - - phpenv config-rm xdebug.ini - script: - - ./tools/php-cs-fixer fix --dry-run -v --show-progress=dots --diff-format=udiff