Skip to content

Update dependency rubocop to v1.88.1 #1161

Update dependency rubocop to v1.88.1

Update dependency rubocop to v1.88.1 #1161

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (c) 2024-2026 Yegor Bugayenko
# SPDX-License-Identifier: MIT
---
# yamllint disable rule:line-length
name: rake
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
rake:
strategy:
matrix:
os: [ubuntu-24.04, macos-15, windows-2022]
ruby: [3.3]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install tidy on Ubuntu
if: matrix.os == 'ubuntu-24.04'
run: sudo apt-get install -y tidy
- name: Install tidy on macOS
if: matrix.os == 'macos-15'
run: brew install tidy-html5
- name: Install tidy on Windows
if: matrix.os == 'windows-2022'
run: choco install html-tidy -y
- name: Install libcurl on Windows (using Ruby's MSYS2)
if: matrix.os == 'windows-2022'
run: |
# Find Ruby installation path dynamically
$rubyPath = (Get-Command ruby).Path | Split-Path | Split-Path
$rubyMsys2 = Join-Path $rubyPath "msys64"
Write-Host "Using Ruby path: $rubyPath"
Write-Host "Using MSYS2 path: $rubyMsys2"
if (Test-Path $rubyMsys2) {
& "$rubyMsys2\usr\bin\pacman.exe" -S --noconfirm mingw-w64-ucrt-x86_64-curl
Write-Host "Installed curl package, checking files:"
Get-ChildItem "$rubyMsys2\ucrt64\bin\*curl*"
if (Test-Path "$rubyMsys2\ucrt64\bin\libcurl-4.dll") {
if (-not (Test-Path "$rubyMsys2\ucrt64\bin\libcurl.dll")) {
New-Item -ItemType SymbolicLink -Path "$rubyMsys2\ucrt64\bin\libcurl.dll" -Target "$rubyMsys2\ucrt64\bin\libcurl-4.dll"
Write-Host "Created symlink: libcurl.dll -> libcurl-4.dll"
}
}
} else {
Write-Host "MSYS2 path not found at: $rubyMsys2"
Write-Host "Available Ruby paths:"
Get-ChildItem $rubyPath
}
shell: pwsh
- run: bundle config set --global path "$(pwd)/vendor/bundle"
- run: bundle install --no-color
- run: bundle exec rake