Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjektGopher committed Jul 21, 2023
1 parent 202ea3f commit 176508c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: |
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Larastan
run: ./vendor/bin/phpstan analyse
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Stan
run: composer stan
12 changes: 2 additions & 10 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,5 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: "laravel-pint"
uses: aglipanci/[email protected]
with:
preset: laravel

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: PHP Linting (Pint)
skip_fetch: true
- name: "Lint"
run: composer lint -- --test
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
"build": [
"@php whisky app:build whisky"
],
"lint": [
"vendor/bin/pint"
],
"stan": [
"vendor/bin/phpstan analyse"
],
"test": [
"@php whisky test"
]
Expand Down
5 changes: 3 additions & 2 deletions whisky.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"disabled": [],
"hooks": {
"pre-commit": [
"composer lint",
"composer pint --dirty"
"composer lint -- --test"
],
"pre-push": [
"composer lint -- --test",
"composer stan",
"composer test"
]
}
Expand Down

0 comments on commit 176508c

Please sign in to comment.