Use test-unit-ruby-core instead of deep-copy from ruby repository #462
Workflow file for this run
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: Test | |
on: [push, pull_request] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
ruby-versions: | |
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
with: | |
engine: cruby-jruby | |
versions: '["truffleruby"]' | |
test: | |
needs: ruby-versions | |
strategy: | |
matrix: | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
exclude: | |
- os: windows-latest | |
ruby: truffleruby | |
- os: windows-latest | |
ruby: jruby | |
- os: windows-latest | |
ruby: jruby-head | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | |
# libyaml-dev is needed for psych, see https://github.com/ruby/setup-ruby/issues/409 | |
- if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: sudo apt install libyaml-dev | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # 'bundle install' and cache | |
# Avoid issues on these platforms | |
- if: ${{ matrix.ruby == '2.6' }} | |
run: gem update --system | |
- name: Run test | |
run: bundle exec rake | |
env: | |
RUBYOPT: --enable-frozen_string_literal | |
continue-on-error: ${{ matrix.ruby == 'truffleruby-head' }} | |
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }} | |
run: bundle exec rake rdoc | |
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }} | |
run: bundle exec rake rubocop | |