Bump guzzlehttp/psr7 from 1.9.0 to 1.9.1 #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: push | |
jobs: | |
tests: | |
runs-on: ${{ matrix.operating-system }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: true | |
matrix: | |
operating-system: ['ubuntu-latest'] | |
php-versions: ['7.3', '7.4'] | |
experimental: [false] | |
include: | |
- php-versions: '8.0' | |
operating-system: 'ubuntu-latest' | |
experimental: true | |
- php-versions: '8.1' | |
operating-system: 'ubuntu-latest' | |
experimental: true | |
name: PHP ${{ matrix.php-versions }} | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- 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 PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring | |
tools: composer:v2 | |
- name: Check PHP Version | |
run: php --version | |
- name: Check Composer Version | |
run: composer --version | |
- name: Composer Dependencies (7.x) | |
run: composer install --no-interaction --no-suggest --no-progress --prefer-dist --optimize-autoloader | |
if: matrix.php-versions != '8.0' | |
- name: Composer Dependencies (8.0) | |
run: composer install --no-interaction --no-suggest --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs | |
if: matrix.php-versions == '8.0' | |
- name: Prepare build directory | |
run: | | |
[ ! -d build ] && (echo "creating build directory" && mkdir build) | |
- name: Lint PHP Files | |
run: vendor/bin/parallel-lint src resources/database bin config web/index.php | |
- name: Run Testsuite | |
run: vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml | |
- name: Upload coverage data | |
if: matrix.php-versions == '7.4' | |
run: | | |
wget https://scrutinizer-ci.com/ocular.phar | |
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml |