Use ICANBOOGIE_CLDR_MODE to run test in static mode (no web calls) #43
This file contains 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: | |
- push | |
- pull_request | |
jobs: | |
phpstan: | |
name: phpstan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
ini-values: memory_limit=-1 | |
tools: composer:v2 | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.composer/cache | |
vendor | |
key: phpstan-deps | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress | |
- name: Analyze | |
run: vendor/bin/phpstan |