Skip to content

Draft php 8.1,

Draft php 8.1, #134

Workflow file for this run

on:
- pull_request
- push
name: build
jobs:
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
env:
extensions: dom, json, gd, imagick
key: cache-v1
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
php:
- 8.1
- 8.2
steps:
- name: Checkout.
uses: actions/checkout@v2
- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
ini-values: date.timezone='UTC'
- name: Install dependencies with composer.
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Run tests with codeception
run: |
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
vendor/bin/codecept run --coverage-xml
shell: bash
- name: Upload coverage to Codecov.
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
file: runtime/_output/coverage.xml