-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.38 KB
/
phpstan.yml
File metadata and controls
35 lines (35 loc) · 1.38 KB
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
name: 'PHPStan'
on:
push:
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 1
# ------------------------------------------------------------------------------
# Prepare our composer cache directory
# ------------------------------------------------------------------------------
- name: Get Composer Cache Directory
id: get-composer-cache-dir
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: composer-cache
with:
path: ${{ steps.get-composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
# ------------------------------------------------------------------------------
# Install dependencies
# ------------------------------------------------------------------------------
- name: Install dependencies
run: composer install --ignore-platform-reqs --no-interaction
# ------------------------------------------------------------------------------
# Run PHPStan
# ------------------------------------------------------------------------------
- name: Run PHPStan
run: composer phpstan