Skip to content

Commit

Permalink
ci: test downstream libs against this version of nokogiri
Browse files Browse the repository at this point in the history
- loofah
- rails-html-sanitizer
- sanitize

See #2293
  • Loading branch information
flavorjones committed May 9, 2022
1 parent 1bbc022 commit fc8f323
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,40 @@ jobs:
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:memcheck

downstream:
name: downstream-${{matrix.name}}
needs: ["basic"]
strategy:
fail-fast: false
matrix:
include:
- url: https://github.com/flavorjones/loofah
name: loofah
- url: https://github.com/rails/rails-html-sanitizer
name: rails-html-sanitizer
- url: https://github.com/rgrove/sanitize
name: sanitize
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/cache@v2
with:
path: ports
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile
- run: |
git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
cd ${{matrix.name}}
cat <<EOF > Gemfile
source 'https://rubygems.org'
gemspec
gem 'nokogiri', path: '..'
EOF
bundle install --local || bundle install
bundle exec rake test

0 comments on commit fc8f323

Please sign in to comment.