Skip to content

disable run test coverage on macos #162

disable run test coverage on macos

disable run test coverage on macos #162

Workflow file for this run

name: Tests
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
php: ['8.1', '8.2', '8.3', '8.4']
pest: ['2.0', '3.0']
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: '8.1'
pest: '3.0'
name: PHP ${{ matrix.php }} - PEST ^${{ matrix.pest }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
- name: Install PHP dependencies
run: |
composer require "pestphp/pest:^${{ matrix.pest }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
- name: Unit Tests
if: matrix.os !== 'macos-latest'
run: composer test:unit -- --coverage-clover ./coverage.xml
if: matrix.os == 'macos-latest'

Check failure on line 39 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 39, Col: 7): 'if' is already defined .github/workflows/tests.yml (Line: 40, Col: 7): 'run' is already defined
run: composer test:unit
- name: Upload coverage reports to Codecov
if: ${{matrix.os == 'ubuntu-latest' && matrix.php == '8.1'}}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true