Skip to content

refactor: Quote the php version #5

refactor: Quote the php version

refactor: Quote the php version #5

name: Code Analysis
on:
pull_request: null
push:
branches:
- develop
workflow_dispatch:
permissions:
contents: read
jobs:
code_analysis:
strategy:
fail-fast: false
matrix:
actions:
- name: 'PHPStan'
run: composer phpstan
- name: 'Coding Standards'
run: composer fix-cs
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
php_version: "8.2"
php_extensions: ctype curl dom iconv imagick intl json mbstring openssl pcre pdo reflection spl zip
- run: ${{ matrix.actions.run }}