Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Merge pull request #105 from minvws/dependabot/composer/laravel/forti… #198

Merge pull request #105 from minvws/dependabot/composer/laravel/forti…

Merge pull request #105 from minvws/dependabot/composer/laravel/forti… #198

Workflow file for this run

name: PHP Linting
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
composer-install:
runs-on: ubuntu-22.04
strategy:
max-parallel: 3
matrix:
php-versions: ['8.0', '8.1', '8.2' ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: zip
- name: Install Dependencies
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.REPO_READ_ONLY_TOKEN }}"}}'
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
php-linting-psr12:
needs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Coding style PSR12 Check
run: vendor/bin/phpcs
strategy:
max-parallel: 3
matrix:
php-versions: ['8.0', '8.1', '8.2' ]
php-linting-stan:
needs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Copy .env
run: cp -n .env.example .env
- name: Static analysis with PHPStan
run: vendor/bin/phpstan analyse
strategy:
max-parallel: 3
matrix:
php-versions: ['8.0', '8.1', '8.2' ]
php-linting-psalm:
needs:
- composer-install
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Copy .env
run: cp -n .env.example .env
- name: Static analysis with psalm
run: vendor/bin/psalm
strategy:
max-parallel: 3
matrix:
php-versions: ['8.0', '8.1', '8.2' ]