Skip to content

Updated deprecated code. #86

Updated deprecated code.

Updated deprecated code. #86

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
testsuite:
name: all tests
runs-on: ubuntu-22.04
strategy:
matrix:
php: [ '8.1' ]
TYPO3: [ '12' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-composer-
- name: Install composer dependencies
run: |
composer install --no-progress --prefer-dist
- name: Lint PHP
if: matrix.php == '8.1' && (success() || failure())
run: composer run-script phplint
- name: PHP CS
if: matrix.php == '8.1' && (success() || failure())
run: composer run-script phpcs
- name: phpstan
if: success() || failure()
run: composer run-script phpstan
- name: Unit Tests
if: success() || failure()
run: composer run-script unit-test