forked from Torann/laravel-geoip
-
Notifications
You must be signed in to change notification settings - Fork 4
Fix coding style #94
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis
on:
workflow_dispatch:
push:
paths:
- '**.php'
- 'composer.lock'
- 'psalm*'
jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install composer dependencies
run: "composer install --no-interaction --no-progress --no-scripts"
- name: Run Psalm
run: ./vendor/bin/psalm --find-unused-psalm-suppress --output-format=github --shepherd