-
Notifications
You must be signed in to change notification settings - Fork 51
78 lines (62 loc) · 1.88 KB
/
Copy pathlint.yml
File metadata and controls
78 lines (62 loc) · 1.88 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
pint:
name: Pint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.5
tools: composer:v2
coverage: none
- name: Init composer
run: composer init --no-interaction
- name: Install Laravel Pint
run: composer require "laravel/pint:^1.29"
- name: Run Pint
run: vendor/bin/pint --test
phpstan:
name: PHPStan
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [ 8.3, 8.4, 8.5 ]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Clone Pelican Panel
run: git clone --depth=1 https://github.com/pelican/panel pelican
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Install panel dependencies
run: |
cd pelican
composer install --no-interaction --no-suggest --no-progress --no-scripts
- name: Install plugin dependencies
run: |
cd pelican
composer require "stripe/stripe-php:^20.1" "kovah/laravel-socialite-oidc:^0.8" "xpaw/php-minecraft-query:^5.0.0" "xpaw/php-source-query-class:^6.0.0"
- name: Setup .env file
run: cp pelican/.env.example pelican/.env
- name: Move plugin folders and phpstan.neon
run: |
mkdir -p pelican/plugins
rsync -av --progress ./ pelican/plugins/ --exclude=pelican
cp phpstan.neon pelican/phpstan.neon
- name: Run PHPStan Analysis
run: |
cd pelican
vendor/bin/phpstan analyse --memory-limit=-1 --error-format=github