Skip to content

Commit

Permalink
ci: test downstream rails-html-sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 17, 2022
1 parent 79d65a0 commit 9e02d41
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -41,3 +41,28 @@ jobs:
bundler-cache: true
rubygems: latest
- run: bundle exec rake test

# borrowed from nokogiri/.github/workflows/downstream.yml
downstream:
needs: ["rubocop"]
name: downstream-${{matrix.name}}
strategy:
fail-fast: false
matrix:
include:
- url: https://github.com/rails/rails-html-sanitizer
name: rails-html-sanitizer
command: "bundle exec rake test"
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true
rubygems: latest
- run: |
git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
cd ${{matrix.name}}
bundle add loofah --path ".."
bundle install --local || bundle install
${{matrix.command}}

0 comments on commit 9e02d41

Please sign in to comment.