Skip to content

Commit

Permalink
Another attempt to get CI to build the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Mar 17, 2021
1 parent bc982f8 commit 2680ba0
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Build gem
run: bundle exec gem build --verbose debug_inspector.gemspec

- name: Install gem
run: |
bundle exec gem build debug_inspector.gemspec
gem install debug_inspector*.gem
run: gem install --verbose debug_inspector*.gem

- name: Create directory for gem test
run: mkdir -p tmp/gem-test
Expand All @@ -87,12 +88,25 @@ jobs:
run: echo "gem 'debug_inspector'" > Gemfile
working-directory: ./tmp/gem-test

- name: List gem contents
run: find $(bundle show debug_inspector)
- name: Get gem installation path
id: gem_path
run: |
gem_path=$(bundle show debug_inspector)
echo "gem_path is ${gem_path}"
echo "::set-output name=path::${gem_path}"
shell: bash
working-directory: ./tmp/gem-test

- name: List installed gem contents
run: find .
shell: bash
working-directory: ${{ steps.gem_path.outputs.path }}

- name: Test gem load
run: bundle exec ruby -e "require 'debug_inspector'"
working-directory: ./tmp/gem-test

- name: Test gem functionality
if: ${{ matrix.ruby != 'jruby' && matrix.ruby != 'truffleruby' }}
run: bundle exec ruby -e "require 'debug_inspector'; RubyVM::DebugInspector.open { |dc| dc.frame_binding(1) }"
working-directory: ./tmp/gem-test

0 comments on commit 2680ba0

Please sign in to comment.