Skip to content

Commit 7e5c760

Browse files
committed
fixup! WIP: Attempt to fix CI
1 parent 89fb316 commit 7e5c760

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/binary-gems.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,11 @@ jobs:
132132
with:
133133
name: binary-gem-${{ matrix.platform }}
134134

135+
- name: Set bundle path to avoid permission issues
136+
run: bundle config set --local path vendor/bundle
137+
- run: bundle add --help
135138
- run: bundle install
136-
- run: gem install --local pg-*${{ matrix.platform }}.gem --verbose
139+
- run: bundle add pg --path=pg-*${{ matrix.platform }}.gem
137140

138141
- name: Download PostgreSQL
139142
if: ${{ matrix.os == 'windows-latest' && matrix.PGVERSION }}
@@ -156,12 +159,12 @@ jobs:
156159
- run: echo $env:PATH
157160
- name: Run specs
158161
if: ${{ matrix.os != 'windows-latest' }}
159-
run: ruby -rpg -S rspec -fd spec/*_spec.rb spec/**/*_spec.rb
162+
run: bundle exec ruby -rpg -S rspec -fd spec/*_spec.rb spec/**/*_spec.rb
160163
- name: Run specs
161164
if: ${{ matrix.os == 'windows-latest' }}
162165
run: |
163166
ridk enable
164-
ruby -rpg -S rspec -fd spec/*_spec.rb spec/**/*_spec.rb
167+
bundle exec ruby -rpg -S rspec -fd spec/*_spec.rb spec/**/*_spec.rb
165168
166169
- name: Print logs if job failed
167170
if: ${{ failure() && matrix.os == 'windows-latest' }}

0 commit comments

Comments
 (0)