Skip to content

Commit f7ea77b

Browse files
authored
GitHub Actions for RSpec and RSpec on JRuby (#15)
1 parent df59593 commit f7ea77b

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export JRUBY_OPTS="--debug"

.github/workflows/jruby.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: RSpec on JRuby
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: "0 21 * * 6"
12+
13+
env:
14+
JRUBY_OPTS: "--debug"
15+
16+
jobs:
17+
rspec:
18+
runs-on: ubuntu-24.04
19+
timeout-minutes: 10
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
ruby: ["jruby-9.4", "jruby-head"]
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- run: rm -f Gemfile.lock
28+
- run: rm -f .ruby-version
29+
- name: Set up Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
rubygems: latest
34+
bundler: latest
35+
bundler-cache: true
36+
37+
- run: bundle exec rspec

.github/workflows/rspec.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
name: RSpec
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
schedule:
12+
- cron: "0 21 * * 6"
13+
14+
jobs:
15+
rspec:
16+
runs-on: ubuntu-24.04
17+
timeout-minutes: 10
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
ruby: ["3.1", "3.2", "3.3", "3.4"]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- run: rm -f Gemfile.lock
26+
- run: rm -f .ruby-version
27+
- name: Set up Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
rubygems: latest
32+
bundler: latest
33+
bundler-cache: true
34+
35+
- run: bundle exec rspec

0 commit comments

Comments
 (0)