Skip to content

Commit

Permalink
ci: simpler downstream setup
Browse files Browse the repository at this point in the history
since bundler 2.3.22 we can use `bundle add --path=<path>`
  • Loading branch information
flavorjones committed Dec 14, 2022
1 parent 7b3f40a commit 77a3e7f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,16 @@ jobs:
with:
path: ports
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: gem install bundler -v ">= 2.3.22" # for "add --path"
- run: bundle install --local || bundle install
- run: bundle exec rake compile
- run: |
git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
cd ${{matrix.name}}
if grep nokogiri Gemfile ; then
sed -i 's/\(.*nokogiri.*\)/\1, path: ".."/' Gemfile
else
echo "gem 'nokogiri', path: '..'" >> Gemfile
fi
if egrep "add_development_dependency.*\bbundler\b" *gemspec ; then
- run: git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
- name: ${{matrix.name}} test suite
working-directory: ${{matrix.name}}
run: |
bundle remove nokogiri || true
bundle add nokogiri --path=".."
if grep "add_development_dependency.*\bbundler\b" *gemspec ; then
sed -i 's/.*add_development_dependency.*\bbundler\b.*//' *gemspec
fi
bundle install --local || bundle install
Expand Down

0 comments on commit 77a3e7f

Please sign in to comment.