Skip to content

Streams: fix Creation of dynamic property CachedFileReader::$error #21

Streams: fix Creation of dynamic property CachedFileReader::$error

Streams: fix Creation of dynamic property CachedFileReader::$error #21

Workflow file for this run

name: "build"
on:
pull_request:
paths-ignore:
- ".docs/**"
push:
branches:
- "*"
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
env:
extensions: "json"
cache-version: "1"
composer-version: "v2"
composer-install: "composer update --ignore-platform-reqs"
coverage: "none"
jobs:
qa:
name: "Linter"
runs-on: "${{ matrix.operating-system }}"
strategy:
matrix:
php-version: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Setup PHP cache environment"
id: "extcache"
uses: "shivammathur/cache-extensions@v1"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.extensions }}"
key: "${{ env.cache-version }}"
- name: "Cache PHP extensions"
uses: "actions/cache@v2"
with:
path: "${{ steps.extcache.outputs.dir }}"
key: "${{ steps.extcache.outputs.key }}"
restore-keys: "${{ steps.extcache.outputs.key }}"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.extensions }}"
tools: "composer:${{ env.composer-version }}, cs2pr"
coverage: "${{ env.coverage }}"
- name: "Setup problem matchers for PHP"
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
- name: "Get Composer cache directory"
id: "composercache"
run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'
- name: "Cache PHP dependencies"
uses: "actions/cache@v2"
with:
path: "${{ steps.composercache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Validate Composer"
run: "composer validate"
- name: "Install dependencies"
run: "${{ env.composer-install }}"
- name: "Coding Standard"
run: "make lint"
tests:
name: "Tests"
runs-on: "${{ matrix.operating-system }}"
strategy:
matrix:
php-version: [ "8.0", "8.1", "8.2", "8.3" ]
operating-system: [ "ubuntu-latest" ]
composer-args: [ "" ]
fail-fast: false
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Setup PHP cache environment"
id: "extcache"
uses: "shivammathur/cache-extensions@v1"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.extensions }}"
key: "${{ env.cache-version }}"
- name: "Cache PHP extensions"
uses: "actions/cache@v2"
with:
path: "${{ steps.extcache.outputs.dir }}"
key: "${{ steps.extcache.outputs.key }}"
restore-keys: "${{ steps.extcache.outputs.key }}"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
extensions: "${{ env.extensions }}"
tools: "composer:${{ env.composer-version }}"
coverage: "${{ env.coverage }}"
- name: "Setup problem matchers for PHP"
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'
- name: "Get Composer cache directory"
id: "composercache"
run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'
- name: "Cache PHP dependencies"
uses: "actions/cache@v2"
with:
path: "${{ steps.composercache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Install dependencies"
run: "${{ env.composer-install }} ${{ matrix.composer-args }}"
- name: "Tests"
run: "make tests"
- name: "Upload test output"
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: output
path: tests/**/output