-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 828 Bytes
/
pint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Sample workflow for validating and linting PHP code with Laravel Pint
name: Pint
on:
push:
branches:
- 'Feature/*'
jobs:
phpstan:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer
- name: Install dependencies
run: composer install
- name: Run PHPStan
run: composer pint