Skip to content

Commit 463569c

Browse files
authored
Merge pull request #17 from ruby/improve-ci
Improve CI
2 parents 0aadba9 + 13bb747 commit 463569c

7 files changed

Lines changed: 11 additions & 1208 deletions

File tree

.github/workflows/test.yml

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

55
jobs:
6-
build:
6+
ruby-versions:
7+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
with:
9+
engine: cruby
10+
min_version: 2.6
11+
12+
test:
13+
needs: ruby-versions
714
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
815
strategy:
916
matrix:
10-
ruby: [ '3.0', 2.7, 2.6, 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
@@ -6,4 +6,5 @@ group :development do
66
gem "bundler"
77
gem "rake"
88
gem "test-unit"
9+
gem "test-unit-ruby-core"
910
end

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)