Skip to content

Commit

Permalink
Merge bb0d88b into dffa103
Browse files Browse the repository at this point in the history
  • Loading branch information
eXorus committed Aug 18, 2019
2 parents dffa103 + bb0d88b commit 51323ba
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 37 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
@@ -1,24 +1,45 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
build:

php-cs-fixer:
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.TADA }}@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 $GITHUB_REF
git add src
git add tests
git commit -m "PHP CS Fixer" || echo "No changes found. Nothing to commit."
git push
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3]
composer: ["", "--prefer-lowest"]

steps:
- uses: actions/checkout@v1
- name: Change PHP version
run: sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
- name: Install mailparse
run: sudo apt install php-mailparse
- name: Composer install
run: composer update ${{ matrix.composer }}
run: composer update ${{ matrix.composer }} --no-progress
- name: PHP Version
run: php -v
- name: PhpUnit
Expand Down
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit 51323ba

Please sign in to comment.