From 1ca507a75e46e1cd1b4406e44490bfe6f429e5f1 Mon Sep 17 00:00:00 2001 From: rennokki Date: Fri, 20 Nov 2020 10:36:20 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97e0a19..8ac4943 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,17 @@ jobs: strategy: matrix: - php: ['7.2', '7.3', '7.4'] - laravel: ['6.*', '7.*', '8.*'] - prefer: ['prefer-lowest', 'prefer-stable'] + php: + - '7.3' + - '7.4' + - '8.0' + laravel: + - 7.* + - 8.* + prefer: + - 'prefer-lowest' + - 'prefer-stable' include: - - laravel: '6.*' - testbench: '4.*' - laravel: '7.*' testbench: '5.*' - laravel: '8.*' @@ -32,8 +37,14 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: actions/cache@v1 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv + coverage: pcov + - uses: actions/cache@v1 name: Cache dependencies with: path: ~/.composer/cache/files @@ -41,12 +52,12 @@ jobs: - name: Install dependencies run: | - composer update --no-interaction --prefer-stable + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/database:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest - name: Run tests run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/database:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest + vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml - uses: codecov/codecov-action@v1 with: