Skip to content

Commit

Permalink
Merge pull request #123 from ruby/improve-ci
Browse files Browse the repository at this point in the history
Improve CI
  • Loading branch information
hsbt authored Oct 20, 2023
2 parents b567008 + c957968 commit 15e5ca9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1,169 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ name: test
on: [push, pull_request]

jobs:
build:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
min_version: 2.4

test:
needs: ruby-versions
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: [ 3.2, 3.1, "3.0", 2.7, 2.6, 2.5, 2.4, head ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ gemspec

gem "rake"
gem "test-unit"
gem "test-unit-ruby-core"
7 changes: 0 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,4 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList["test/**/test_*.rb"]
end

task :sync_tool do
require 'fileutils'
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
end

task :default => :test
Loading

0 comments on commit 15e5ca9

Please sign in to comment.