Skip to content

Commit

Permalink
Create php-cs-fixer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eXorus committed Aug 18, 2019
1 parent 12eb34c commit f92eaee
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/php-cs-fixer.yml
@@ -0,0 +1,28 @@
name: CI

on: [push]

jobs:
phpcs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Composer install
run: composer update --no-progress --ignore-platform-reqs
- name: PHPCS
run: |
composer require friendsofphp/php-cs-fixer --ignore-platform-reqs
./vendor/bin/php-cs-fixer fix src
./vendor/bin/php-cs-fixer fix tests
- name: Auto Commit
run: |
git remote set-url origin https://eXorus:${{ secrets.GITHUB_TOKEN }}@github.com/php-mime-mail-parser/php-mime-mail-parser
git config --global user.email "you@example.com"
git config --global user.name "PHP CS Fixer"
git checkout auto-commit
git add src
git add tests
git commit -m "PHP CS Fixer" || echo "No changes found. Nothing to commit."
git push

0 comments on commit f92eaee

Please sign in to comment.