File: ci.yml

package info (click to toggle)
ruby-rspec-its 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: ruby: 455; sh: 25; makefile: 2
file content (69 lines) | stat: -rw-r--r-- 1,785 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
name: RSpec CI
on:
  push:
    branches:
      - 'main'
      - '*-maintenance'
      - '*-dev'
  pull_request:
    branches:
      - '*'
env:
  RSPEC_CI: true
jobs:
  rubocop:
    name: Rubocop
    runs-on: 'ubuntu-20.04'
    steps:
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.3'
      - run: script/update_rubygems_and_install_bundler
      - run: bundle install
      - run: bundle exec rubocop -c .rubocop.yml

  test:
    name: Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
    runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
    strategy:
      matrix:
        ruby:
          - '3.4'
          - '3.3'
          - '3.2'
          - '3.1'
          - '3.0'
        env:
          -
            BRANCH: "main"
        include:
          - ruby: '3.3'
            name_extra: "against RSpec 3.13"
            env:
              BRANCH: "3-13-maintenance"
          - ruby: '3.2'
            name_extra: "against RSpec 3.13"
            env:
              BRANCH: "3-13-maintenance"
          - ruby: '3.1'
            name_extra: "against RSpec 3.13"
            env:
              BRANCH: "3-13-maintenance"
          - ruby: '3.0'
            name_extra: "against RSpec 3.13"
            env:
              BRANCH: "3-13-maintenance"
      fail-fast: false
    continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
    env: ${{ matrix.env }}
    steps:
      - uses: actions/checkout@v3
      - uses: ruby/setup-ruby@v1
        with:
          bundler: ${{ matrix.bundler || 2 }}
          ruby-version: ${{ matrix.ruby }}
      - run: script/update_rubygems_and_install_bundler
      - run: bundle install --standalone
      - run: bundle binstubs --all
      - run: script/test_all