Skip to content

Commit

Permalink
Add RUBYLIB to load fake etc.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 29, 2023
1 parent 717062d commit df479aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
rubygems: ${{ matrix.ruby < '2.7' && '3.4.22' || '' }}
bundler-cache: true
- name: Add RUBYLIB to load fake etc.rb
run:
echo RUBYLIB=%CD:\=/%/lib >> $GITHUB_ENV
- name: Run test
run: bundle exec rake compile test
2 changes: 2 additions & 0 deletions lib/etc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$:.delete(__dir__)
raise LoadError, "etc"

0 comments on commit df479aa

Please sign in to comment.