mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
8c2a138df7
Unfortunately, there's a mysterious bug with Ruby 2.4 & 2.5 when we cache gems: https://github.com/pry/pry/actions/runs/1016360216
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: pry
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
ruby:
|
|
- 2.0
|
|
- 2.1
|
|
- 2.2
|
|
- 2.3
|
|
- 2.4
|
|
- 2.5
|
|
- 2.6
|
|
- 2.7
|
|
# Due to https://github.com/actions/runner/issues/849,
|
|
# we have to use quotes for '3.0'
|
|
- '3.0'
|
|
- head
|
|
- jruby
|
|
- jruby-head
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
|
|
# Run manually, don't cache deps due to a bug with Ruby 2.4 and Ruby 2.5
|
|
# https://github.com/pry/pry/actions/runs/1016360216
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
|
|
- name: Rubocop lint
|
|
run: |
|
|
if bundle list | grep rubocop
|
|
then
|
|
bundle exec rubocop --parallel
|
|
fi
|
|
|
|
- name: YARD lint
|
|
run: |
|
|
touch README # Workaround for "incorrect" links in README.md
|
|
bundle exec yardoc --fail-on-warning --no-progress --readme=README
|
|
|
|
- name: Display Ruby version
|
|
run: ruby -v
|
|
|
|
- name: Test
|
|
run: bundle exec rake
|
|
env:
|
|
# Make sure TERM is set so Pry can indent correctly inside tests.
|
|
TERM: screen-256color
|