Skip to content

refactor Created Storage for avoid php-mock and simplify filesystem a… #330

refactor Created Storage for avoid php-mock and simplify filesystem a…

refactor Created Storage for avoid php-mock and simplify filesystem a… #330

Workflow file for this run

name: Code Analysis
# https://github.com/shivammathur/setup-php
on:
push:
branches-ignore: [ rc** ]
pull_request:
branches-ignore: [ master ]
jobs:
githooks:
name: GitHooks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['7.1']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
tools/tmp/resultCache.php #Phpstan cache
${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
run: |
chmod -R +x tools/*
tools/composer install --prefer-dist --no-progress
- name: Execute GitHooks
run: php githooks tool all full
# Code_Analysis:
# name: Code Analysis
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# php-versions: ['7.1']
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Install PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php-versions }}
# - name: Cache dependencies
# uses: actions/cache@v4
# with:
# path: |
# tools/tmp/resultCache.php #Phpstan cache
# /home/runner/.cache/composer/files
# key: ${{ runner.os }}-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
# restore-keys: |
# ${{ runner.os }}-
# - name: Install dependencies
# run: |
# chmod -R +x tools/*
# tools/composer install --prefer-dist --no-progress
# - name: Execute PhpStan
# id: phpstan
# run: php githooks tool phpstan
# continue-on-error: true
# - name: Execute Php Mess Detector
# id: phpmd
# run: php githooks tool phpmd
# continue-on-error: true
# - name: Execute Php Code Sniffer
# id: phpcs
# run: php githooks tool phpcs
# continue-on-error: true
# - name: Check on failures
# if: steps.phpstan.outcome != 'success' || steps.phpmd.outcome != 'success' || steps.phpcs.outcome != 'success'
# run: exit 1