Skip to content

Merge pull request #1 from cspray/task/fix-readme-examples #4

Merge pull request #1 from cspray/task/fix-readme-examples

Merge pull request #1 from cspray/task/fix-readme-examples #4

Workflow file for this run

name: 'Tests'
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: xdebug
tools: composer:2
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Composer
run: composer install
- name: Unit Testing
env:
XDEBUG_MODE: coverage
run: ./vendor/bin/phpunit