Skip to content

Do not override the methods in set.rb #1398

Do not override the methods in set.rb

Do not override the methods in set.rb #1398

Workflow file for this run

name: test
on:
push:
pull_request:
schedule:
- cron: '12 3 * * *'
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.7
test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- { os: windows-latest, ruby: head }
include:
- { os: windows-latest, ruby: mingw }
- { os: windows-latest, ruby: mswin }
# - { os: ubuntu-latest, ruby: 'jruby-head', bundle: 'bundle exec' }
- { os: ubuntu-latest, ruby: 'truffleruby-head' }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and enable caching
windows-toolchain: none # no extension
- name: Install missing dependencies
run: gem i power_assert
if: ${{ matrix.ruby == 'head' }}
- name: Build
run: ${{matrix.bundle}} rake build
- name: Run test
run: ${{matrix.bundle}} rake test
- name: Installation test
run: gem install pkg/*.gem
if: ${{ !startsWith(matrix.ruby, 'jruby') }}