From f92eaee36d48cb3aa464c6e601c2af71bad4f6f5 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sun, 18 Aug 2019 11:38:01 +0200 Subject: [PATCH] Create php-cs-fixer.yml --- .github/workflows/php-cs-fixer.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/php-cs-fixer.yml diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml new file mode 100644 index 0000000000..53a26d7ee6 --- /dev/null +++ b/.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 +