File: ci.yml

package info (click to toggle)
ruby-rspec-rails 8.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: ruby: 10,902; sh: 199; makefile: 6
file content (70 lines) | stat: -rw-r--r-- 1,695 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
name: RSpec CI
on:
  push:
    branches:
      - 'main'
      - '*-maintenance'
      - '*-dev'
      - 'pr-*'
  pull_request:
    branches:
      - '*'
permissions:
  contents: read
concurrency:
  group: ${{ github.workflow }}-${{ github.github.head_ref || github.run_id }}
  cancel-in-progress: true

jobs:
  rubocop:
    name: Rubocop
    runs-on: 'ubuntu-latest'
    steps:
      - uses: actions/checkout@v6
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.3'
      - run: script/update_rubygems_and_install_bundler
      - run: script/bundle
      - run: script/run_rubocop

  test:
    name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
    runs-on: 'ubuntu-latest'
    strategy:
      fail-fast: false
      matrix:
       include:
         # Rails 8.0 builds >= 3.2
         - ruby: 3.4
           env:
             RAILS_VERSION: '~> 8.0.0'
         - ruby: 3.3
           env:
             RAILS_VERSION: '~> 8.0.0'
         - ruby: 3.2
           env:
             RAILS_VERSION: '~> 8.0.0'

         # Rails 7.2 builds >= 3.1
         - ruby: 3.3
           env:
             RAILS_VERSION: '~> 7.2.0'
         - ruby: 3.2
           env:
             RAILS_VERSION: '~> 7.2.0'
         - ruby: 3.1
           env:
             RAILS_VERSION: '~> 7.2.0'

    env: ${{ matrix.env }}
    steps:
      - uses: actions/checkout@v6
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - run: script/update_rubygems_and_install_bundler
      - run: script/clone_all_rspec_repos
      - run: script/bundle
      - run: script/run_build
        continue-on-error: ${{ matrix.allow_failure || false }}