Skip to content

Refactor constructor and run method for nullable Output and array args #8

Refactor constructor and run method for nullable Output and array args

Refactor constructor and run method for nullable Output and array args #8

Workflow file for this run

name: CI
on:
push:
branches: [main, '*.x']
pull_request:
branches: [main, '*.x']
permissions:
contents: read
jobs:
qa:
name: PHP ${{ matrix.php }} / QA
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none
tools: composer:v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Validate composer.json
run: composer validate --strict
- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php }}-
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-interaction
- name: Coding standards (phpcs)
run: composer cs-ci
- name: Static analysis (PHPStan)
run: composer stan
- name: Unit tests (PHPUnit)
run: composer test