Skip to content

Commit

Permalink
Enhancement: Run php-cs-fixer as GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Sep 6, 2019
1 parent b910069 commit ba982b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ba982b6

Please sign in to comment.