Skip to content

Commit

Permalink
Add static analysis action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Jan 7, 2024
1 parent 7ff6616 commit 5623453
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Static Analysis

on:
push:
pull_request:

jobs:
static-analysis:
name: Static Analysis

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
php-version: [8.1, 8.2, 8.3]
composer-stability: [prefer-lowest, prefer-stable]
operating-system:
- ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
ini-values: memory_limit=-1
tools: composer:v2, cs2pr

- name: Install Dependencies
run: composer update --${{ matrix.composer-stability }} --prefer-dist --no-interaction --no-progress

- name: Run Static Analysis
run: vendor/bin/phpstan analyse

0 comments on commit 5623453

Please sign in to comment.