ci(deps): bump codecov/codecov-action from 5.0.0 to 5.0.7 #294
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
# Trigger the workflow on pushes to only the 'master', 'support' and 'release' branches | |
push: | |
branches: | |
- master | |
- support/* | |
- release/* | |
# Trigger the workflow on any pull request | |
pull_request: | |
types: [ opened, reopened ] | |
# Trigger the workflow on manual dispatch | |
workflow_dispatch: | |
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/[email protected] | |
- name: Setup PHP environment | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
coverage: pcov | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- uses: actions/[email protected] | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- 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/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml |