Skip to content

Upgrade to PhpUnit 10.x and code clean up. #16

Upgrade to PhpUnit 10.x and code clean up.

Upgrade to PhpUnit 10.x and code clean up. #16

Workflow file for this run

on:
- "pull_request"
- "push"
name: "unit"
permissions:
contents: "read"
jobs:
tests:
name: "Tests"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "inotify, xdebug"
- name: "Cache dependencies installed with Composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php${{ matrix.php-version }}-composer-"
- name: "Install dependencies with Composer"
run: "composer update --no-ansi --no-interaction --no-progress"
- name: "Add properties to the kernel"
run: "bin/plaisio --no-ansi plaisio:kernel-properties"
- name: "Run tests with PHPUnit"
run: "bin/phing unit"
- name: "Upload to Codecov"
uses: "codecov/codecov-action@v2"
with:
files: "test/coverage.xml"
verbose: true