Skip to content

Commit 2c50757

Browse files
authored
Merge pull request #35 from hayat01sh1da/hayat01sh1da/ruby/split-target-into-app-and-test
[ruby] Split Target into App and Test
2 parents ac62061 + c2a8c8f commit 2c50757

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,5 @@ jobs:
117117
- name: Steep
118118
working-directory: ./ruby
119119
run: |
120-
bundle exec steep check
120+
bundle exec steep check app
121+
bundle exec steep check test

ruby/Steepfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
# frozen_string_literal: true
22

3-
D = Steep::Diagnostic
4-
53
target :app do
64
check 'main.rb'
75
check 'exec'
86
check 'src'
9-
check 'test'
7+
ignore 'test'
108
signature 'sig'
119

1210
library 'date'
11+
library 'fileutils'
12+
13+
configure_code_diagnostics(Steep::Diagnostic::Ruby.default)
14+
end
15+
16+
target :test do
17+
ignore 'main.rb'
18+
ignore 'exec'
19+
ignore 'src'
20+
check 'test'
21+
signature 'sig'
22+
1323
library 'fileutils'
1424
library 'minitest'
1525

16-
configure_code_diagnostics(D::Ruby.default)
26+
configure_code_diagnostics(Steep::Diagnostic::Ruby.default)
1727
end

0 commit comments

Comments
 (0)