Update vimeo/psalm requirement from ^4.18 to ^5.25 #164
Workflow file for this run
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
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'psalm.xml' | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'psalm.xml' | |
name: mutation test | |
jobs: | |
mutation: | |
name: PHP ${{ matrix.php }}-${{ matrix.os }} | |
env: | |
extensions: curl, fileinfo, mbstring, openssl | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- windows-latest | |
php: | |
- 7.4 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: ${{ env.extensions }} | |
ini-values: memory_limit=-1 | |
coverage: pcov | |
tools: composer:v2 | |
- 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: 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: Install dependencies with composer | |
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi | |
- name: Run infection | |
run: | | |
vendor/bin/roave-infection-static-analysis-plugin -j2 --ignore-msi-with-no-mutations --only-covered | |
env: | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
shell: bash |