Skip to content

Updated README

Updated README #6

Workflow file for this run

name: CI-CD
on: [push, pull_request]
jobs:
php-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
stability: [prefer-stable]
experimental: [false]
continue-on-error: ${{ matrix.experimental }}
name: PHP ${{ matrix.php }} (${{ matrix.stability }})
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, bcmath
- 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: Composer Install
run: |
composer validate
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: PHPCS
run: composer phpcs