File: test.yml

package info (click to toggle)
pry 0.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: ruby: 21,692; sh: 17; makefile: 11
file content (92 lines) | stat: -rw-r--r-- 2,236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: pry

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.3

      - name: Install dependencies
        run: bundle install

      - name: Rubocop lint
        run: rubocop --parallel

      - name: YARD lint
        run: |
          touch README # Workaround for "incorrect" links in README.md
          bundle exec yardoc --fail-on-warning --no-progress --readme=README

  test:
    strategy:
      matrix:
        os: ['ubuntu-20.04', windows-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'
          - 3.1
          - 3.2
          - 3.3
          - head
          - jruby-9.3.3.0
          # - jruby-head
        exclude:
          - os: windows-latest
            ruby: jruby-9.3.3.0
          - os: windows-latest
            ruby: '2.0'
          - os: windows-latest
            ruby: '2.1'
          - os: windows-latest
            ruby: '2.2'
          - os: windows-latest
            ruby: '2.3' # Intermittent failing Expression: RBASIC_CLASS(ret) == rb_cString
          - os: windows-latest
            ruby: '3.1'
          - os: windows-latest
            ruby: '3.2'
          - os: windows-latest
            ruby: '3.3'
          - os: windows-latest
            ruby: 'head'

    runs-on: ${{ matrix.os }}
    continue-on-error: true

    steps:
      - uses: actions/checkout@v4

      - 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: 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
          ROWS: 40
          COLUMNS: 160