Skip to content

Commit ba982b6

Browse files
localheinzsebastianbergmann
authored andcommitted
Enhancement: Run php-cs-fixer as GitHub action
1 parent b910069 commit ba982b6

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
name: CI
8+
9+
jobs:
10+
php-cs-fixer:
11+
name: Static Code Analysis
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@master
16+
17+
- name: Run friendsofphp/php-cs-fixer
18+
uses: docker://php:7.3-cli
19+
with:
20+
args: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose

.travis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,3 @@ after_success:
4444

4545
notifications:
4646
email: false
47-
48-
jobs:
49-
include:
50-
- stage: "Static Code Analysis"
51-
php: 7.3
52-
env:
53-
- TOOL="php-cs-fixer"
54-
install:
55-
- phpenv config-rm xdebug.ini
56-
script:
57-
- ./tools/php-cs-fixer fix --dry-run -v --show-progress=dots --diff-format=udiff

0 commit comments

Comments
 (0)