Skip to content

Commit

Permalink
run tests with bundle exec
Browse files Browse the repository at this point in the history
So that bigdecimal gem is found.
This fixes the following error in CI:

LoadError:
  cannot load such file -- bigdecimal
 ./lib/pg/text_encoder/numeric.rb:7:in `init_numeric'
 ./lib/pg/text_encoder/numeric.rb:7:in `<module:TextEncoder>'
 ./lib/pg/text_encoder/numeric.rb:5:in `<module:PG>'
 ./lib/pg/text_encoder/numeric.rb:4:in `<top (required)>'
 ./lib/pg/basic_type_registry.rb:229:in `register_default_types'
 ./lib/pg/basic_type_registry.rb:300:in `<class:BasicTypeRegistry>'
 ./lib/pg/basic_type_registry.rb:28:in `<top (required)>'
 ./lib/pg/basic_type_map_based_on_result.rb:57:in `<class:BasicTypeMapBasedOnResult>'
 ./lib/pg/basic_type_map_based_on_result.rb:56:in `<top (required)>'
 ./spec/pg/basic_type_map_based_on_result_spec.rb:7:in `block in <top (required)>'
 ./spec/pg/basic_type_map_based_on_result_spec.rb:6:in `<top (required)>'
  • Loading branch information
larskanis committed Feb 15, 2024
1 parent bd23b62 commit babb517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/source-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Run specs
env:
PG_DEBUG: 0
run: ruby -rpg -S rspec spec/**/*_spec.rb -cfdoc
run: bundle exec ruby -rpg -S rspec spec/**/*_spec.rb -cfdoc

- name: Print logs if job failed
if: ${{ failure() && matrix.os == 'windows' }}
Expand Down

0 comments on commit babb517

Please sign in to comment.