Skip to content

Release 5.0.0

Release 5.0.0 #52

Workflow file for this run

name: CI build
on: [ push, pull_request ]
jobs:
build:
name: PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} ${{ matrix.extra-label }} ${{ matrix.composer-dependencies }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.4', '8.0', '8.1' ]
composer-dependencies: [ '', '--prefer-lowest' ]
extra-label: [ '' ]
include:
# Windows
- php-versions: '7.4'
operating-system: windows-latest
coverage: xdebug
# Windows
- php-versions: '8.0'
operating-system: windows-latest
coverage: xdebug
# Windows
- php-versions: '8.1'
operating-system: windows-latest
coverage: xdebug
steps:
# see https://github.com/actions/checkout/issues/226#issue-606867805
- name: Prepare git
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
ini-values: memory_limit=-1
tools: composer:v2
coverage: ${{ matrix.coverage }}
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer update --no-progress --prefer-dist --optimize-autoloader ${{ matrix.composer-dependencies }}
- name: Run CI Build
run: composer ci
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v