summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-01-30 18:30:11 -0700
committerGitHub <noreply@github.com>2020-01-30 18:30:11 -0700
commit2beea79b84b5711d7b8deaa20261f3a07f4b0f4b (patch)
tree026219554d4cd65c3fc33fc308d525cd522225e6 /.github
parent847765a2b6c9ae5c58547d549f1934f158e0d129 (diff)
Use separate step for Bundler config in GitHub Action (PR #1532)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d5793243..0c02153a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,13 +15,15 @@ jobs:
uses: eregon/use-ruby-action@v1
with:
ruby-version: ${{ matrix.ruby }}
+ - name: Configure Bundler
+ run: |
+ bundle config --local path .bundle/gems
+ bundle config --local without docs lint coverage
- name: Install dependencies
run: |
- # Fix for PowerShell issue, non default value (stop) used by Actions
+ # Prevent use of non-default value (Stop) by GitHub Actions, which can terminate step
# see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-7#erroractionpreference
$ErrorActionPreference = 'Continue'
- bundle config --local path .bundle/gems
- bundle config --local without docs lint coverage
bundle --jobs 3 --retry 3
- name: Test
run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec