Skip to content

tweaking php unit

tweaking php unit #24

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
operating-system: ['ubuntu-24.04']
php-versions: ['8.2', '8.4']
phpunit-versions: ['latest']
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer, phpunit
coverage: none
- name: Remove composer.lock
run: |
if [ -f composer.lock ]; then
rm composer.lock
fi
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist
- name: Run test suite
run: composer run-script test