Skip to content

Commit

Permalink
Windows Actions CI - use $ErrorActionPreference for bundler install step
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Jan 31, 2020
1 parent b840160 commit 68bece6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Ruby
uses: eregon/use-ruby-action@v1.10.0
uses: eregon/use-ruby-action@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
gem install -N bundler
# NOTE using bundle config causes bundle install to crash; see https://github.com/eregon/use-ruby-action/issues/13
#bundle config --local path .bundle/gems
#bundle config --local without docs lint coverage
#bundle --jobs 3 --retry 3
bundle --jobs 3 --retry 3 --path .bundle/gems --without docs lint coverage
# Fix for PowerShell issue, non default value (stop) used by Actions
# 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

0 comments on commit 68bece6

Please sign in to comment.