Skip to content

[Cache] Various Updates (#227) #298

[Cache] Various Updates (#227)

[Cache] Various Updates (#227) #298

Workflow file for this run

name: Codecov
on:
push:
branches:
- main
paths:
- 'src/**'
pull_request:
branches:
- main
paths:
- 'src/**'
permissions:
contents: read
jobs:
test:
name: Codecov
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.2']
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
extensions: apcu
- name: Cache Composer Packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- run: make install phpunit
env:
XDEBUG_MODE: coverage
PHPUNIT_OPTIONS: --coverage-clover coverage.xml --log-junit junit.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}