allow time
tag and lang
attr, remove XPATHS_TO_REMOVE
, add test coverage, get JRuby green
#84
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
concurrency: | |
group: "${{github.workflow}}-${{github.ref}}" | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- v*.*.x | |
tags: | |
- v*.*.* | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- '*' | |
jobs: | |
cruby: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "ruby-head", "truffleruby-head"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- run: bundle exec rake | |
cruby-nokogiri-system-libraries: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
- name: Install nokogiri with system libraries | |
run: | | |
sudo apt install pkg-config libxml2-dev libxslt-dev | |
bundle config set force_ruby_platform true | |
bundle config build.nokogiri --enable-system-libraries | |
bundle install | |
bundle exec nokogiri -v | |
- run: bundle exec rake | |
jruby: | |
continue-on-error: true # nokogiri on jruby has different behavior | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["jruby-9.3", "jruby-9.4", "jruby-head"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- run: bundle exec rake |