Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||