Skip to content

Commit

Permalink
Test installation from packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 10, 2024
1 parent 33105bc commit 163e077
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,19 @@ jobs:
bundler-cache: true
- name: Run test
run: bundle exec rake test
- name: Build package
id: build
shell: bash
run: |
if ruby -e 'exit RUBY_VERSION>="3.0."'; then
bundle exec rake build
set pkg/*.gem
echo pkg=$1 >> $GITHUB_OUTPUT
fi
- name: Install gem
run: |
gem install ${{ steps.build.outputs.pkg }}
ruby -rresolv -e 'puts $LOADED_FEATURES.grep(/resolv/)'
ruby -rresolv -e 'puts Resolv::VERSION'
if: ${{ steps.build.outputs.pkg }}
continue-on-error: ${{ startsWith(matrix.ruby, 'jruby') }}

0 comments on commit 163e077

Please sign in to comment.