Skip to content

Adds percentage increase and decrease calculation methods #25

Adds percentage increase and decrease calculation methods

Adds percentage increase and decrease calculation methods #25

Workflow file for this run

name: PHP Tests
on: [push, pull_request]
jobs:
php:
name: (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
tools: cs2pr
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-interaction --classmap-authoritative --no-progress
- name: Run PHP Code Sniffer and PHP CS Fixer (dry run)
run: composer run-script phpcs:ci
- name: Run unit tests
run: composer run-script phpunit:ci