Skip to content

Commit 8cc5c39

Browse files
authored
Merge pull request #39 from ruby/use-test-unit-ruby-core
Use test-unit-ruby-core
2 parents abeb413 + 0af773d commit 8cc5c39

File tree

7 files changed

+10
-1207
lines changed

7 files changed

+10
-1207
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ name: test
33
on: [push, pull_request]
44

55
jobs:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby
10+
min_version: 2.5
11+
612
build:
13+
needs: ruby-versions
714
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
815
strategy:
916
matrix:
10-
ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
17+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1118
os: [ ubuntu-latest, macos-latest ]
1219
runs-on: ${{ matrix.os }}
1320
steps:

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ gemspec
44

55
gem "rake"
66
gem "test-unit"
7+
gem "test-unit-ruby-core"

Rakefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,4 @@ Rake::TestTask.new(:test) do |t|
77
t.test_files = FileList["test/**/test_*.rb"]
88
end
99

10-
task :sync_tool do
11-
require 'fileutils'
12-
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
13-
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14-
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15-
end
16-
1710
task :default => :test

0 commit comments

Comments
 (0)