Skip to content

Commit cbf6ded

Browse files
committed
Add PHPStan action
1 parent 7df1a26 commit cbf6ded

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/PHPStan.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches: [5.0]
6+
pull_request:
7+
branches: [5.0]
8+
workflow_dispatch:
9+
10+
jobs:
11+
PHPStan:
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php_versions: ['8.1', '8.2', '8.3']
17+
18+
runs-on: ubuntu-latest
19+
name: PHPStan - ${{ matrix.php_versions }}
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Setup PHP, with composer and extensions
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php_versions }}
28+
29+
- name: Install Dependencies
30+
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
31+
32+
- name: Run PHPStan
33+
run: vendor/bin/phpstan analyse

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Build](https://img.shields.io/github/actions/workflow/status/userfrosting/UserFrosting/Build.yml?branch=5.1&logo=github)](https://github.com/userfrosting/UserFrosting/actions)
66
[![Codecov](https://codecov.io/gh/userfrosting/userfrosting/branch/5.1/graph/badge.svg)](https://codecov.io/gh/userfrosting/userfrosting)
77
[![Style](https://github.styleci.io/repos/18148206/shield?branch=5.1&style=flat)](https://github.styleci.io/repos/18148206)
8+
[![PHPStan](https://img.shields.io/github/actions/workflow/status/userfrosting/userfrosting/PHPStan.yml?branch=5.1&label=PHPStan)](https://github.com/userfrosting/userfrosting/actions/workflows/PHPStan.yml)
89
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
910
[![Join the chat](https://img.shields.io/badge/Chat-UserFrosting-brightgreen?logo=Rocket.Chat)](https://chat.userfrosting.com/channel/support)
1011
[![Backers on Open Collective](https://img.shields.io/opencollective/backers/userfrosting?logo=opencollective)](#backers)

0 commit comments

Comments
 (0)