Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: extract upstream pipeline, start integration testing against nokogiri main #639

Merged
merged 3 commits into from Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 4 additions & 23 deletions .github/workflows/ci-test.yml → .github/workflows/ci.yml
Expand Up @@ -20,10 +20,10 @@ jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true
- run: bundle exec rake rubocop

Expand All @@ -32,31 +32,12 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "jruby-9.4", "truffleruby", "head", "jruby-head", "truffleruby-head"]

ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "jruby-9.4", "truffleruby"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby-version}}
bundler-cache: true
bundler: 2.3.26 # https://github.com/rubygems/rubygems/issues/6435
- run: bundle exec rake test

test-platform:
needs: ["rubocop"]
strategy:
fail-fast: false
matrix:
platform: ["windows-latest", "macos-latest"]

runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
bundler: latest
- run: bundle exec rake test
32 changes: 29 additions & 3 deletions .github/workflows/upstream.yml
@@ -1,4 +1,4 @@
name: "ci"
name: "upstream"

concurrency:
group: "${{github.workflow}}-${{github.ref}}"
Expand All @@ -19,7 +19,33 @@ on:
- .github/workflows/upstream.yml # this file

jobs:
skeleton:
test:
strategy:
fail-fast: false
matrix:
ruby-version: ["head", "jruby-head", "truffleruby-head"]
runs-on: ubuntu-latest
steps:
- run: echo "Hello, World!"
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby-version}}
bundler-cache: true
- run: bundle exec rake test

upstream:
name: "upstream (${{matrix.name}})"
strategy:
fail-fast: false
matrix:
include:
- { name: "nokogiri", git: "https://github.com/sparklemotion/nokogiri" }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with: { ruby-version: "3.3" }
- run: |
bundle add ${{matrix.name}} --git="${{matrix.git}}"
bundle show
- run: bundle exec rake test