Skip to content

Commit dc3a858

Browse files
committed
add phpstan
1 parent 9fd7382 commit dc3a858

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
8+
9+
jobs:
10+
phpstan:
11+
name: phpstan
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.0'
20+
coverage: none
21+
22+
- name: Install composer dependencies
23+
uses: ramsey/composer-install@v1
24+
25+
- name: Run PHPStan
26+
run: ./vendor/bin/phpstan --error-format=github

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Very short description of the package
22

3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/run-tests?label=tests)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/blamebutton/laravel-changelog/Check%20&%20fix%20styling?label=code%20style)](https://github.com/blamebutton/laravel-changelog/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
7+
8+
39
[![Latest Version on Packagist](https://img.shields.io/packagist/v/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
410
[![Total Downloads](https://img.shields.io/packagist/dt/blamebutton/laravel-changelog.svg?style=flat-square)](https://packagist.org/packages/blamebutton/laravel-changelog)
511
![GitHub Actions](https://github.com/blamebutton/laravel-changelog/actions/workflows/main.yml/badge.svg)

0 commit comments

Comments
 (0)