Skip to content

Align with changes in dependencies. #6

Align with changes in dependencies.

Align with changes in dependencies. #6

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.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-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"
restore-keys: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
- 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@v4"
with:
files: "test/coverage.xml"
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}