From ea2beb7250f11e5eb73f1ac5a29b2e9b97fb5204 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 10 Dec 2024 18:17:45 +0900 Subject: [PATCH] Test installation from packages --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 946b6c3..3486d83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,3 +32,16 @@ jobs: bundler-cache: true - name: Run test run: bundle exec rake test + - name: Build package + id: build + 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 Resolv::VERSION' + if: ${{ startsWith(matrix.ruby, 'ruby') && steps.build.outputs.pkg }}