From 35a0e3e8226b6b57f5cf44c2303a9e803c892c00 Mon Sep 17 00:00:00 2001 From: rennokki Date: Fri, 20 Nov 2020 11:08:00 +0200 Subject: [PATCH] Added PHP 8.0 & PHP setup --- .github/workflows/ci.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ab4ff7..9e31080 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,18 @@ jobs: strategy: matrix: - php: ['7.2', '7.3', '7.4'] - laravel: ['6.*', '7.*', '8.*'] - prefer: ['prefer-lowest', 'prefer-stable'] + php: + - '7.2' + - '7.3' + - '7.4' + - '8.0' + laravel: + - 6.* + - 7.* + - 8.* + prefer: + - 'prefer-lowest' + - 'prefer-stable' include: - laravel: '6.*' testbench: '4.*' @@ -34,6 +43,13 @@ jobs: steps: - uses: actions/checkout@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 + - name: Setup Redis uses: supercharge/redis-github-action@1.1.0 with: @@ -52,11 +68,11 @@ jobs: - name: Run tests for Local run: | - REPLICATION_MODE=local phpunit --coverage-text --coverage-clover=coverage_local.xml + REPLICATION_MODE=local vendor/bin/phpunit --coverage-text --coverage-clover=coverage_local.xml - name: Run tests for Redis run: | - REPLICATION_MODE=redis phpunit --coverage-text --coverage-clover=coverage_redis.xml + REPLICATION_MODE=redis vendor/bin/phpunit --coverage-text --coverage-clover=coverage_redis.xml - uses: codecov/codecov-action@v1 with: