From ee81e89c35291fb23115f2e4c78f73a36fe9c0d1 Mon Sep 17 00:00:00 2001 From: Vincent Dauce Date: Sun, 18 Aug 2019 12:27:13 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29a838fd0b..4f3e6602b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,24 @@ name: CI on: [push] jobs: - + + tests: + 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 }} && php -v + - name: Install mailparse + run: sudo apt install php-mailparse + - name: Composer update + run: composer update ${{ matrix.composer }} --no-progress + - name: PhpUnit + run: ./vendor/bin/phpunit + php-cs: runs-on: ubuntu-latest steps: @@ -30,20 +47,3 @@ jobs: COVERALLS_REPO_TOKEN: BS4E6dtQa8fUMHQiOTFbQICA6ydxSqkRt run: ./vendor/bin/php-coveralls -v - tests: - 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 }} && php -v - - name: Install mailparse - run: sudo apt install php-mailparse - - name: Composer update - run: composer update ${{ matrix.composer }} --no-progress - - name: PhpUnit - run: ./vendor/bin/phpunit -