Skip to content

Commit

Permalink
Add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel committed May 21, 2024
1 parent 723a86a commit ce23397
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PHP Unit
on: [ pull_request ]
jobs:
phpunit:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # important!
- name: setup php
run: |
git submodule init
git submodule update --remote --merge
- name: Install dependencies
run: |
sudo apt update && sudo apt remove mysql* -y
touch storage/logs/laravel.log
touch storage/logs/crontab.log
touch storage/logs/horizon.log
touch database/database.sqlite
cp .env.ci .env
./bin/sail up -d
- name: tear down containers
run: |
./bin/sail bin phpstan analyse --error-format=github

0 comments on commit ce23397

Please sign in to comment.