Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
add setup script + tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Nov 22, 2023
1 parent 250cd45 commit e07642b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
max-score: 100
- name: A command test
id: a-command-test
uses: education/autograding-command-grader@main
uses: education/autograding-command-grader@change-to-bundled-file
with:
test-name: A command test
setup-command: bundle install
setup-command: ./bin/setup.sh
command: rspec hello_spec.rb
timeout: 10
max-score: 100
Expand Down
22 changes: 22 additions & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Install Ruby
echo "Installing Ruby..."
sudo apt-get update
sudo apt-get install -y ruby-full

# Install RubyGems
echo "Installing RubyGems..."
sudo apt-get install -y rubygems

# Update RubyGems
echo "Updating RubyGems..."
gem update --system

# Install Bundler
echo "Installing Bundler..."
gem install bundler

echo "Installing RSpec..."
gem install rspec

0 comments on commit e07642b

Please sign in to comment.