Skip to content

fix(PHPUnit): Increased memory_limit, to be able to run all tests on MacOS #534

fix(PHPUnit): Increased memory_limit, to be able to run all tests on MacOS

fix(PHPUnit): Increased memory_limit, to be able to run all tests on MacOS #534

Workflow file for this run

name: "Static analysis"
on:
- push
- pull_request
jobs:
run:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ["8.0", "8.1", "8.2", "8.3"]
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov
extensions: intl
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Check Composer configuration
run: composer validate --strict
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Run static analysis - PHPStan
run: composer phpstan
- name: Run static analysis - Psalm
run: vendor/bin/psalm