Skip to content

yum package provider: add assumeyes to yum check-update #157

yum package provider: add assumeyes to yum check-update

yum package provider: add assumeyes to yum check-update #157

Workflow file for this run

---
name: RSpec tests
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
env:
BUNDLE_SET: "without packaging documentation release"
jobs:
checks:
name: ${{ matrix.cfg.check }}
strategy:
matrix:
cfg:
- {check: rubocop, os: ubuntu-latest, ruby: '3.3'}
- {check: warnings, os: ubuntu-latest, ruby: '3.3'}
runs-on: ${{ matrix.cfg.os }}
steps:
- name: Checkout current PR
uses: actions/checkout@v5
- name: Install ruby version ${{ matrix.cfg.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cfg.ruby }}
bundler-cache: true
- name: Run ${{ matrix.cfg.check }} check
run: bundle exec rake ${{ matrix.cfg.check }}
rspec_tests:
name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }})
strategy:
fail-fast: false
matrix:
cfg:
- {os: ubuntu-24.04, ruby: '3.2'}
- {os: ubuntu-24.04, ruby: '3.3'}
- {os: ubuntu-24.04, ruby: '3.4'}
- {os: ubuntu-24.04, ruby: 'jruby-9.4'}
- {os: ubuntu-24.04, ruby: 'jruby-9.4.8.0'}
- {os: ubuntu-24.04, ruby: 'jruby-9.4.13.0'}
- {os: windows-2025, ruby: '3.2'}
- {os: windows-2025, ruby: '3.3'}
- {os: windows-2025, ruby: '3.4'}
runs-on: ${{ matrix.cfg.os }}
steps:
- name: Checkout current PR
uses: actions/checkout@v5
- name: Install ruby version ${{ matrix.cfg.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cfg.ruby }}
bundler-cache: true
- name: Output Ruby Environment
run: bundle env
- name: Run tests on Windows
if: runner.os == 'Windows'
run: |
# https://github.com/ruby/ruby/pull/2791/files#diff-ff5ff976e81bebd977f0834e60416abbR97-R100
# Actions uses UTF8, causes test failures, similar to normal OS setup
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
[Console]::InputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
$Env:LOG_SPEC_ORDER = 'true'
# debug information
chcp
Get-WinSystemLocale
Get-ChildItem Env: | % { Write-Output "$($_.Key): $($_.Value)" }
# Enable Windows filesystem 8.3 support, see https://github.com/OpenVoxProject/openvox/pull/180
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /t REG_DWORD /v NtfsDisable8dot3NameCreation /d 0 /f
# list current OpenSSL install
gem list openssl
ruby -ropenssl -e 'puts "OpenSSL Version - #{OpenSSL::OPENSSL_VERSION}"; puts "OpenSSL Library Version - #{OpenSSL::OPENSSL_LIBRARY_VERSION}"'
# Run tests
bundle exec rake parallel:spec[2]
- name: Run tests on Linux
if: runner.os == 'Linux'
run: |
# debug information
ruby -ropenssl -e 'puts "OpenSSL Version - #{OpenSSL::OPENSSL_VERSION}"; puts "OpenSSL Library Version - #{OpenSSL::OPENSSL_LIBRARY_VERSION}"'
if [[ ${{ matrix.cfg.ruby }} =~ "jruby" ]]; then
export _JAVA_OPTIONS='-Xmx1024m -Xms512m'
# workaround for PUP-10683
sudo apt remove rpm
fi
bundle exec rake parallel:spec
tests:
if: always()
needs:
- checks
- rspec_tests
runs-on: ubuntu-24.04
name: Test suite
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}