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 e1f2a4b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,29 @@ 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: actions/checkout@v2
- 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 e1f2a4b

Please sign in to comment.