Skip to content

Commit e1f2a4b

Browse files
committed
ci: test downstream rails-html-sanitizer
1 parent 79d65a0 commit e1f2a4b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,29 @@ jobs:
4141
bundler-cache: true
4242
rubygems: latest
4343
- run: bundle exec rake test
44+
45+
# borrowed from nokogiri/.github/workflows/downstream.yml
46+
downstream:
47+
needs: ["rubocop"]
48+
name: downstream-${{matrix.name}}
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
include:
53+
- url: https://github.com/rails/rails-html-sanitizer
54+
name: rails-html-sanitizer
55+
command: "bundle exec rake test"
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: ruby/setup-ruby@v1
60+
with:
61+
ruby-version: "3.1"
62+
bundler-cache: true
63+
rubygems: latest
64+
- run: |
65+
git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
66+
cd ${{matrix.name}}
67+
bundle add loofah --path ".."
68+
bundle install --local || bundle install
69+
${{matrix.command}}

0 commit comments

Comments
 (0)