Skip to content

Commit 96c3dce

Browse files
authored
Merge pull request #153 from ruby/improve-ci
Improve CI dependencies
2 parents f56dcfc + 56485e4 commit 96c3dce

File tree

7 files changed

+13
-1210
lines changed

7 files changed

+13
-1210
lines changed

.github/workflows/test.yml

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

33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
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
14+
name: test (${{ matrix.ruby }} / ${{ matrix.os }})
815
strategy:
916
matrix:
10-
ruby: [ 3.2, 3.1, '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
@@ -4,4 +4,5 @@ gemspec
44

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

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)