-
-
Notifications
You must be signed in to change notification settings - Fork 90
44 lines (42 loc) · 1.02 KB
/
test-jruby.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
name: JRuby Build
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v1
with:
path: /home/runner/bundle
key: bundle-${{ hashFiles('**/gemfiles/jruby.gemfile') }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-
- uses: ruby/setup-ruby@v1
with:
ruby-version: jruby
- name: Bundle install
run: |
bundle config --global gemfile gemfiles/jruby.gemfile
bundle config path /home/runner/bundle
bundle install
bundle update
- name: Run Ruby Next
run: bundle exec rake nextify
- name: Run Minitest tests
run: |
bundle exec rake test
- name: Run RSpec tests
run: |
bundle exec rspec --force-color
- name: Run Minitest tests in isolation
run: |
bundle exec rake test:isolated