Add Larastan configuration and dependencies for static analysis
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Gemini PR Review / review (pull_request) Successful in 54s
Laravel Pint / pint (pull_request) Failing after 1m47s
Laravel Larastan / larastan (pull_request) Failing after 1m52s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Gemini PR Review / review (pull_request) Successful in 54s
Laravel Pint / pint (pull_request) Failing after 1m47s
Laravel Larastan / larastan (pull_request) Failing after 1m52s
This commit is contained in:
32
.github/workflows/larastan.yaml
vendored
Normal file
32
.github/workflows/larastan.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# Filenme: .github/workflows/larastan.yaml
|
||||
|
||||
name: Laravel Larastan
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
larastan:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Reinstall system libraries to ensure compatibility
|
||||
- name: Ensure system libraries are up-to-date
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --reinstall --yes git libc6
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "8.2"
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --quiet
|
||||
|
||||
# Run larastan code quality checks
|
||||
- name: Run Larastan
|
||||
run: vendor/bin/phpstan analyse --no-progress --memory-limit=2G
|
||||
Reference in New Issue
Block a user