Skip to content

Commit

Permalink
wip test add logs and change ci yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrocha committed Jan 10, 2025
1 parent 3b24432 commit 5928609
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
bundler-cache: true
rubygems: ${{ matrix.rubygems }}
- name: Run tests
run: bin/test
run: bin/test spec/tapioca/ruby_lsp/run_gem_rbi_check_spec.rb
continue-on-error: ${{ !!matrix.experimental }}

buildall:
Expand Down
2 changes: 2 additions & 0 deletions lib/ruby_lsp/tapioca/run_gem_rbi_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def initialize
sig { params(project_path: String).returns(GemRbiCheckResult) }
def run(project_path = ".")
FileUtils.chdir(project_path) do
$stderr.puts "Inside Run Method"
if git_repo?
lockfile_changed? ? generate_gem_rbis : cleanup_orphaned_rbis
else
Expand Down Expand Up @@ -119,6 +120,7 @@ def restore_files(files, message)

sig { params(message: String).void }
def log_message(message)
$stderr.puts message
@result.stdout += "#{message}\n"
end
end
Expand Down
3 changes: 2 additions & 1 deletion spec/tapioca/ruby_lsp/run_gem_rbi_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module Foo
check_exec @project.exec("git init")
check_exec @project.exec("git config user.email '[email protected]'")
check_exec @project.exec("git config user.name 'Test User'")
check_exec @project.exec("git config commit.gpgsign false")
@project.bundle_install!
FileUtils.mkdir_p("#{@project.absolute_path}/sorbet/rbi/gems")
check_exec @project.exec("git add .")
Expand Down Expand Up @@ -152,7 +153,7 @@ module Foo

def check_exec(command)
result = command
raise "fail" unless result.status
raise "failing" unless result.status
end
end
end
Expand Down

0 comments on commit 5928609

Please sign in to comment.