Skip to content

Commit

Permalink
Run check.rb on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Mar 25, 2024
1 parent ad940b6 commit 63e6054
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- name: Run Composer build tasks
run: composer build:all

- name: Run check.rb
run: ruby client/rb_client/check.rb

- name: Start server in background
run: |
composer serve > /dev/null 2>&1 &
Expand Down
23 changes: 23 additions & 0 deletions client/rb_client/check.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Check versions of Ruby and gems
puts "Ruby version: #{RUBY_VERSION}"
puts "Installed gems:"
puts `gem list`

# Check environment variables
puts "Environment variables:"
puts ENV.to_h

# Check existence and content of important files
files_to_check = [
"/path/to/file1",
"/path/to/file2",
# add more file paths here
]
files_to_check.each do |file|
if File.exist?(file)
puts "Content of #{file}:"
puts File.read(file)
else
puts "File #{file} does not exist"
end
end

0 comments on commit 63e6054

Please sign in to comment.