Skip to content

Delete UPGRADE.md (#42) #171

Delete UPGRADE.md (#42)

Delete UPGRADE.md (#42) #171

Workflow file for this run

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
push:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
name: static analysis
jobs:
mutation:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
php:
- 7.4
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2, cs2pr
coverage: none
- name: Determine composer cache directory
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Cache dependencies installed with composer
uses: actions/cache@v2
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php${{ matrix.php }}-composer-
- name: Update composer
run: composer self-update
- name: Choco install 7zip
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install 7zip
- uses: suisei-cn/actions-download-file@v1
id: wincache
name: Download WinCache
with:
url: "https://netcologne.dl.sourceforge.net/project/wincache/development/wincache-2.0.0.8-dev-7.4-nts-vc15-x64.exe"
target: C:\tools\php\ext
- name: Install WinCache
run: |
cd C:\tools\php\ext
7z e -y wincache-2.0.0.8-dev-7.4-nts-vc15-x64.exe
- name: Update php.ini
run: |
cd C:\tools\php
echo extension=php_wincache.dll >> php.ini
echo wincache.enablecli=1 >> php.ini
- name: Install dependencies with composer
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
- name: Static analysis
run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle | cs2pr --graceful-warnings --colorize
shell: bash