Skip to content

fix(demo): Fix /api/stats hits/misses tracking #233

fix(demo): Fix /api/stats hits/misses tracking

fix(demo): Fix /api/stats hits/misses tracking #233

Workflow file for this run

name: PHPStan
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Cache Composer packages
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install PHPStan
run: composer require --dev phpstan/phpstan
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --no-progress