Update vimeo/psalm requirement from ^4.18 to ^5.25 #174
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' | |
- 'infection.json.dist' | |
- 'psalm.xml' | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'infection.json.dist' | |
- 'psalm.xml' | |
name: build | |
jobs: | |
tests: | |
name: PHP ${{ matrix.php }}-${{ matrix.os }} | |
env: | |
extensions: curl, fileinfo, mbstring, openssl | |
key: cache-v1 | |
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: date.timezone='UTC' | |
coverage: pcov | |
tools: composer:v2 | |
- 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: Run tests phpunit with code coverage | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml |