Skip to content

Update composer.json #8

Update composer.json

Update composer.json #8

Workflow file for this run

name: master
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: PHP ${{ matrix.php-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
experimental:
- false
os:
- windows-latest
- ubuntu-latest
- macos-latest
php-version:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
steps:
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
- 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
run: composer install --prefer-dist --no-progress
- name: "Run PHPUnit tests"
run: vendor/bin/phpunit --verbose