From 8f414a4b1c72c5c596cd54aea19eb17f3659a30f Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 2 Nov 2021 23:37:56 +0100 Subject: [PATCH] CI: ruby/setup-ruby with cache This is an experiment to see if it works. --- .github/workflows/ruby.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 6f67ad06..f1a3a846 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -12,10 +12,12 @@ on: jobs: build: + env: + BUNDLE_GEMFILE: ${{ matrix.gemfile }} strategy: fail-fast: false matrix: - ruby_version: [3.0, 2.7, 2.6, 2.5, 2.4, 2.3, jruby] + ruby_version: ["3.0", 2.7, 2.6, 2.5, 2.4, 2.3, jruby] gemfile: [ Gemfile, @@ -69,13 +71,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Ruby - uses: eregon/use-ruby-action@master + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby_version }} + bundler-cache: true # 'bundle install' and cache - name: Build and test with Rake - env: - BUNDLE_GEMFILE: ${{ matrix.gemfile }} - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake + run: bundle exec rake