Skip to content

ci(deps): bump actions/checkout from 4.1.3 to 4.1.4 #263

ci(deps): bump actions/checkout from 4.1.3 to 4.1.4

ci(deps): bump actions/checkout from 4.1.3 to 4.1.4 #263

Workflow file for this run

name: Static Analysis
on:
# Trigger the workflow on pushes to only the 'master', 'support' and 'release' branches
push:
branches:
- master
- support/*
- release/*
# Trigger the workflow on any pull request
pull_request:
types: [ opened, reopened ]
# Trigger the workflow on manual dispatch
workflow_dispatch:
jobs:
cs:
runs-on: ubuntu-latest
name: Code Style
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.4
with:
php-version: 8.1
tools: composer:v2
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4.0.2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Dependencies
run: composer update --no-interaction --no-progress --ansi
- name: Run PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix -v --allow-risky=yes --dry-run --ansi
phpstan:
runs-on: ubuntu-latest
strategy:
matrix:
dependency-version: [prefer-lowest, prefer-stable]
name: PHPStan ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.4
with:
php-version: 8.1
tools: composer:v2
coverage: none
- name: Install Dependencies
run: composer update --prefer-stable --no-interaction --no-progress --ansi
- name: Run PHPStan
run: vendor/bin/phpstan analyse --no-progress --ansi