Skip to content

Commit 1010c9c

Browse files
authored
Merge pull request #42 from hayat01sh1da/hayat01sh1da/ruby/transfer-ruby-ci-workflow-to-bundle-execution-with-rakefile
[ruby] Transfer Ruby CI Workflow to Bundle Execution with Rakefile
2 parents ec9b710 + 0792dcd commit 1010c9c

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
job-name: minitest
9191
- name: Minitest
9292
working-directory: ./ruby
93-
run: ruby test/application_test.rb
93+
run: rake
9494
rubocop:
9595
timeout-minutes: 10
9696
runs-on: ubuntu-latest

ruby/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Provide the specific year you would like to create working report templates for(
2525
## 4. Unit Test
2626

2727
```command
28-
$ ruby test/application_test.rb
29-
Run options: --seed 50571
28+
$ rake
29+
Run options: --seed 39473
3030

3131
# Running:
3232

3333
........
3434

35-
Finished in 5.479053s, 1.4601 runs/s, 2.3727 assertions/s.
35+
Finished in 11.855362s, 0.6748 runs/s, 1.0966 assertions/s.
3636

3737
8 runs, 13 assertions, 0 failures, 0 errors, 0 skips
3838
```

ruby/Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
require 'rake/testtask'
4+
task default: :test
5+
6+
Rake::TestTask.new do |task|
7+
task.pattern = File.join('.', '**', '*_test.rb')
8+
end

0 commit comments

Comments
 (0)