-
-
Notifications
You must be signed in to change notification settings - Fork 25
68 lines (66 loc) · 1.75 KB
/
ci.yml
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
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:
test:
name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.env.RAILS_VERSION }}'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- ruby: '3.1'
- ruby: '3.0'
- ruby: 2.7
- ruby: 2.6
- ruby: 2.5
- ruby: 2.3
- ruby: 2.2
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: script/update_rubygems_and_install_bundler
- run: bundle install --binstubs
- run: script/run_build
legacy:
name: Legacy Ruby Builds (${{ matrix.container.version }})
runs-on: ubuntu-20.04
container:
image: ${{ matrix.container.tag }}
options: ${{ matrix.container.options || '--add-host github-complains-if-this-is-empty.com:127.0.0.1' }}
strategy:
fail-fast: false
matrix:
include:
- container:
version: "2.1.9"
tag: ghcr.io/rspec/docker-ci:2.1.9
post: git config --global --add safe.directory `pwd`
- container:
version: "2.0"
tag: ghcr.io/rspec/docker-ci:2.0.0
- container:
version: "1.9.3"
tag: ghcr.io/rspec/docker-ci:1.9.3
env:
LEGACY_CI: true
steps:
- uses: actions/checkout@v3
- run: script/legacy_setup.sh
- run: ${{ matrix.container.post }}
- run: script/run_build