Skip to content

Replace pg-tools with pg-verify as to please rubygems #8

Replace pg-tools with pg-verify as to please rubygems

Replace pg-tools with pg-verify as to please rubygems #8

Workflow file for this run

---
name: RSpec tests
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
rspec_tests:
name: ${{ matrix.os }} with Ruby v${{ matrix.ruby }}
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest' ]
ruby: [ '3.1', '2.6' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current project version
uses: actions/checkout@v4
- name: Install ruby version ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Update rubygems and install gems
run: |
bundle config set without packaging documentation
bundle install --jobs 4 --retry 3
- 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)" }
Get-Content Gemfile.lock
ruby -v
gem --version
bundle --version
# Run tests
bundle exec rake
- name: Run tests on Linux
if: runner.os == 'Linux'
run: |
# debug information
cat Gemfile.lock
ruby -v
gem --version
bundle --version
bundle exec rake