Skip to content

Commit 6233bab

Browse files
Marick van TuilMarick van Tuil
Marick van Tuil
authored and
Marick van Tuil
committed
Add code-analysis action
1 parent c752fce commit 6233bab

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/code-analysis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Code analysis
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
php-code-styling:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.head_ref }}
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: '8.3'
27+
coverage: none
28+
29+
- name: Install dependencies
30+
run: |
31+
composer install --no-interaction --prefer-dist
32+
33+
- name: Run code analysis
34+
run: |
35+
composer run larastan

0 commit comments

Comments
 (0)