Skip to content

Commit

Permalink
Pipeline environment
Browse files Browse the repository at this point in the history
  • Loading branch information
natalia-ss committed Jan 23, 2024
1 parent f7c3120 commit 33aecaf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/system.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
env:
NAME: 'CI'

name: System tests

on: [pull_request]
Expand Down
16 changes: 12 additions & 4 deletions spec/system/ruby_raider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
describe RubyRaider do
shared_examples 'execute web frameworks' do |name|
it 'runs the tests' do
Dir.chdir(name) do
system 'gem install bundler'
system 'bundle install'
system 'raider u raid'
if ENV['CI']
Dir.chdir(name) do
system 'gem install bundler'
system 'bundle install'
system 'raider u raid'
end
else
Bundler.with_unbundled_env do
Dir.chdir(name) do
system `bundle exec raider u raid`
end
end
end
end
end
Expand Down

0 comments on commit 33aecaf

Please sign in to comment.