Omit Encoding::CompatibilityError test in Reline #110
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] | |
jobs: | |
ruby-versions: | |
uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
with: | |
min_version: 2.6 | |
engine: cruby | |
test: | |
needs: ruby-versions | |
name: build (${{ matrix.ruby }} / ${{ matrix.os }}) | |
strategy: | |
matrix: | |
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
os: [ ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libedit | |
run: sudo apt-get install -q libedit-dev libedit2 | |
if: startsWith(matrix.os, 'ubuntu') | |
- name: Install libedit | |
run: brew install libedit | |
if: startsWith(matrix.os, 'macos') | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install dependencies | |
run: | | |
bundle install | |
gem install reline --pre | |
- name: Run test | |
run: rake compile test | |
- name: Run test with libedit enabled | |
run: rake clobber compile test -- --enable-libedit | |
- name: Run test with libedit disabled | |
run: rake clobber compile test -- --disable-libedit |