Skip to content

Commit 8d3c549

Browse files
authored
Merge pull request #331 from eregon/test-truffleruby
Test Rake on TruffleRuby
2 parents c8251e2 + 18508c4 commit 8d3c549

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: macos
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

.github/workflows/ubuntu-rvm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: ubuntu-rvm
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ]
10+
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'truffleruby', 'ruby-head', '2.3.8', '2.2.10' ]
1111
steps:
1212
- uses: actions/checkout@master
1313
- name: Set up RVM

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ubuntu
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: windows
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

test/test_rake_clean.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
class TestRakeClean < Rake::TestCase # :nodoc:
66
def test_clean
7-
load "rake/clean.rb", true
7+
if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION == '19.3.0'
8+
load "rake/clean.rb" # TruffleRuby 19.3 does not set self correctly with wrap=true
9+
else
10+
load "rake/clean.rb", true
11+
end
812

913
assert Rake::Task["clean"], "Should define clean"
1014
assert Rake::Task["clobber"], "Should define clobber"

0 commit comments

Comments
 (0)