Skip to content

Merge pull request #4 from 8ctopus/dev-fix-tests-on-windows #15

Merge pull request #4 from 8ctopus/dev-fix-tests-on-windows

Merge pull request #4 from 8ctopus/dev-fix-tests-on-windows #15

Workflow file for this run

name: Test coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
php-version: [8.0, 8.1, 8.2]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run static analysis
run: make analyze
- name: Run test suite
run: make coverage
- uses: codecov/codecov-action@v3
with:
files: ./build/logs/clover.xml
#flags: unittests # optional
#name: codecov-umbrella # optional
#fail_ci_if_error: true # optional (default = false)
#verbose: true # optional (default = false)