Bump codecov/codecov-action from 4 to 5 #319
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: Tests on Windows | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- name: Install scoop | |
run: | | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin" | |
scoop update | |
scoop install 7zip | |
scoop install imagemagick ghostscript ffmpeg | |
scoop checkup | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
shell: powershell | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: imagick, zip, fileinfo, bz2 | |
coverage: pcov | |
# - name: Install rar extension | |
# run: | | |
# php -i | find "Thread Safety" | |
# php -i | grep "Architecture" | |
# Invoke-WebRequest -Uri https://windows.php.net/downloads/pecl/releases/rar/4.2.0/php_rar-4.2.0-8.1-nts-vs16-x64.zip -OutFile php_rar.zip | |
# 7z x php_rar.zip -ophp_rar | |
# cd php_rar | |
# cp php_rar.dll C:\tools\php\ext\php_rar.dll | |
# Add-Content C:\tools\php\php.ini "`nextension=rar`n" | |
# shell: powershell | |
- name: Setup problem matchers | |
run: | | |
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-interaction | |
- name: Create .env file | |
run: | | |
cp .env.example .env | |
shell: powershell | |
# - name: Check extension rar | |
# run: php -m | grep rar | |
- name: Check extension imagick | |
run: php -m | grep imagick | |
- name: Execute tests | |
run: vendor/bin/pest |