Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Updated GitHub PHPUnit workflow #26

Updated GitHub PHPUnit workflow

Updated GitHub PHPUnit workflow #26

Workflow file for this run

name: phpunit
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
dependencies-php-${{ matrix.php }}-composer-
dependencies-php-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit