mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
28 lines
625 B
YAML
28 lines
625 B
YAML
name: Static code analysis (PHPStan)
|
|
on: push
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
phpstan:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- name: "Checkout code"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "Setup PHP"
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.3'
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
|
|
coverage: none
|
|
|
|
- name: "Run composer install"
|
|
run: composer install -n --prefer-dist
|
|
|
|
- name: "Run PHPStan"
|
|
run: composer analyse
|
|
|
|
|