PHP Classes

File: .github/workflows/tests.yml

Recommend this page to a friend!
  Classes of Andrey Iatsenko   Laravel Route Coverage   .github/workflows/tests.yml   Download  
File: .github/workflows/tests.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Route Coverage
Report the coverage of Laravel project tests
Author: By
Last change:
Date: 9 months ago
Size: 1,226 bytes
 

Contents

Class file image Download
name: Run tests on: push: branches: [ master, dev ] pull_request: branches: [ master, dev ] jobs: tests: runs-on: ubuntu-latest strategy: fail-fast: false matrix: php: ["8.1", "8.0"] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} steps: - uses: actions/checkout@v2 # Setup PHP versions, run checks - name: PHP setup uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} ini-values: xdebug.mode="coverage" coverage: xdebug - name: Cache Composer packages id: composer-cache uses: actions/cache@v2 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: composer install --prefer-dist --no-progress --no-suggest - name: Run test and generate coverage report run: composer run-script coverage - name: Upload coverage to Codecov uses: codecov/codecov-action@v2.1.0