From 07d7fa17e4c61102597280bd31a6b5972d8e5588 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 11 Feb 2021 17:23:30 +0900 Subject: [PATCH] bundle-install only on ruby 2.1 --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3de47d9..817e65e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,13 @@ jobs: with: ruby-version: ${{ matrix.ruby }} - name: Install - run: bundle install + id: bundle + run: | + bundle install + echo "::set-output name=exec::bundle exec" + if: "matrix.ruby <= '2.1'" - name: Run test - run: bundle exec rake test + run: ${{steps.bundle.outputs.exec}} rake test - id: build run: | rake build