Skip to content

ci(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 #472

ci(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0

ci(deps): bump codecov/codecov-action from 4.5.0 to 4.6.0 #472

Workflow file for this run

name: Tests
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
php: ['8.1', '8.2']
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.0
- name: Setup PHP environment
uses: shivammathur/setup-php@2.31.1
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug
extensions: json,fileinfo
- name: Setup problem matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install PHP dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
- name: Run unit tests by pest
run: ./vendor/bin/pest --colors=always --coverage --coverage-clover coverage.xml
- name: Collect test coverage
uses: codecov/codecov-action@v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml