Repository navigation
149 lines (115 loc) · 3.1 KB
/
Copy pathruby.yml
File metadata and controls
149 lines (115 loc) · 3.1 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
#
# Created: 29th August 2025
# Updated: 29th August 2026
#
name: Ruby
on:
push:
branches:
- master
- dev
- boilerplate
- idiomatic
- rc1
- rc2
- rc3
pull_request:
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
documentation:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checking out code
uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: false
- name: Generate RDoc coverage report
run: ./generate_rdoc.sh -C
test:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ruby-version:
# - head
- '4.0'
- '3.4'
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
include:
- os: ubuntu-latest
ruby-version: '2.5'
- os: ubuntu-latest
ruby-version: '2.4'
- os: ubuntu-latest
ruby-version: '2.0'
- os: windows-latest
ruby-version: mingw
runs-on: ${{ matrix.os }}
steps:
- name: Checking out code
uses: actions/checkout@v7
- name: Remove Gemfile.lock
shell: bash
run: rm -f Gemfile.lock
- name: Set up Ruby v${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# Bundler 4 honours Gemfile `lockfile false`, so no Gemfile.lock
# is written. bundler-cache cats that file after `bundle lock`
# and fails on Windows 3.2+ (setup-ruby installs Bundler ~> 4).
bundler-cache: false
- name: Install gems
run: bundle install
- name: Show Ruby version
run: ruby -v
- name: Run tests
run: bundle exec rake test
- name: Gem build and install smoke
shell: bash
run: |
gem build xqsr3.gemspec
gem install --local xqsr3-*.gem
ruby -e "require 'xqsr3/version'; abort('VERSION missing') unless defined?(Xqsr3::VERSION); puts Xqsr3::VERSION"
warnings:
name: Warnings
runs-on: ubuntu-latest
steps:
- name: Checking out code
uses: actions/checkout@v7
- name: Remove Gemfile.lock
shell: bash
run: rm -f Gemfile.lock
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: false
- name: Install gems
run: bundle install
- name: Show Ruby version
run: ruby -v
- name: Run unit tests with warnings
run: ./run_all_unit_tests.sh --lib --warnings