Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Actions CI - use $ErrorActionPreference for bundler install step #1531

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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