Skip to content

updating for php 8 and beyond #16

updating for php 8 and beyond

updating for php 8 and beyond #16

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
operating-system: ['ubuntu-18.04']
php-versions: ['7.3']
phpunit-versions: ['latest']
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
- name: Use PHP 7.1
run: |
sudo update-alternatives --set php /usr/bin/php7.1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist
- name: Run test suite
run: composer run-script test