Skip to content

Commit

Permalink
Merge pull request #247 from flavorjones/flavorjones-downstream-test-rhs
Browse files Browse the repository at this point in the history
ci: test downstream rails-html-sanitizer
  • Loading branch information
flavorjones authored Nov 17, 2022
2 parents 79d65a0 + e1f2a4b commit ea853aa
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 ea853aa

Please sign in to comment.