Skip to content

Commit

Permalink
Merge pull request #189 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 d8a7d78 + 28ab928 commit b5f83b2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 1,208 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,26 @@ on:
- 'master'

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

build:
needs: ruby-versions
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head', 'jruby-9.2', 'jruby-9.3', 'jruby-9.4', 'jruby-head' ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Build and test with Rake
run: |
gem i test-unit
gem i test-unit test-unit-ruby-core
RUBYOPT='--disable-did_you_mean' rake
benchmark:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem 'benchmark_driver'
gem 'memory_profiler'
gem 'jaro_winkler', '>= 1.4.0'
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 @@ -21,13 +21,6 @@ end

task default: %i(test)

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

namespace :test do
namespace :accuracy do
desc "Download Wiktionary's Simple English data and save it as a dictionary"
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ before_test:
- gem -v
- bundle -v
- gem uni did_you_mean
- gem i test-unit-ruby-core

test_script:
- rake
Loading

0 comments on commit b5f83b2

Please sign in to comment.