Skip to content

Commit

Permalink
ci: start testing against 3.1
Browse files Browse the repository at this point in the history
Note that this commit doesn't include building or testing native gem
support for Ruby 3.1.
  • Loading branch information
flavorjones committed Jan 3, 2022
1 parent dc8c69d commit 92b33ab
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
rubocop:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.0
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -47,7 +47,7 @@ jobs:
submodules: true
- uses: MSP-Greg/setup-ruby-pkgs@v1
with:
ruby-version: "3.0"
ruby-version: "3.1"
apt-get: "ragel"
brew: "ragel"
mingw: "ragel"
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.6", "2.7", "3.0"]
ruby: ["2.6", "2.7", "3.0", "3.1"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand All @@ -101,7 +101,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.6", "2.7", "3.0"]
ruby: ["2.6", "2.7", "3.0", "3.1"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable"]
ruby: ["3.0"]
ruby: ["3.1"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand All @@ -185,7 +185,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.0"]
ruby: ["3.1"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand All @@ -210,7 +210,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.6", "2.7", "3.0"]
ruby: ["2.6", "2.7", "3.0", "3.1"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -234,7 +234,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.6", "2.7", "3.0", "mingw"]
ruby: ["2.6", "2.7", "3.0", "3.1", "mingw"]
runs-on: windows-latest
steps:
- name: configure git crlf
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.0"]
ruby: ["3.1"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/gem-install.yml
Expand Up @@ -42,7 +42,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.6", "2.7", "3.0", "head"]
ruby: ["2.6", "2.7", "3.0", "3.1", "head"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.1"
- uses: actions/download-artifact@v2
with:
name: cruby-gem
Expand Down Expand Up @@ -102,6 +102,29 @@ jobs:
gem list -d nokogiri
nokogiri -v
cruby-windows-install-ucrt:
needs: ["cruby-package"]
strategy:
fail-fast: false
matrix:
sys: ["enable", "disable"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: MSP-Greg/setup-ruby-pkgs@v1
with:
ruby-version: "3.1"
mingw: "libxml2 libxslt"
- uses: actions/download-artifact@v2
with:
name: cruby-gem
path: gems
- run: |
gem install --verbose --no-document gems/*.gem -- --${{matrix.sys}}-system-libraries
gem list -d nokogiri
nokogiri -v
cruby-native-package:
name: "cruby-native-package"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upstream.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
xmlsoft-head:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.0
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -46,7 +46,7 @@ jobs:
needs: ["xmlsoft-head"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.0
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
html5lib-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.0
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 92b33ab

Please sign in to comment.