Skip to content

Commit

Permalink
Merge pull request #639 from sparklemotion/flavorjones-refactor-ci
Browse files Browse the repository at this point in the history
ci: extract upstream pipeline, start integration testing against nokogiri main
  • Loading branch information
flavorjones committed Mar 23, 2024
2 parents 4a11085 + 9e72346 commit d353494
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
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

0 comments on commit d353494

Please sign in to comment.