Update CI language versions (#1549)

Bump main Ruby version to 3.3, change Node to 20.x (LTS)
This commit is contained in:
Matt Wang 2024-10-09 01:25:18 -07:00 committed by GitHub
parent aeaa79cf27
commit f5626b16a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,54 +15,54 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
jekyll-version: [3.9, 4.3] jekyll-version: [3.9, 4.3]
os: [ ubuntu-latest, macos-latest, windows-latest ] os: [ubuntu-latest, macos-latest, windows-latest]
ruby-version: ["3.1", "3.2", "3.3"] ruby-version: ["3.1", "3.2", "3.3"]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Ruby ${{ matrix.ruby-version }} - name: Setup Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: ${{ matrix.ruby-version }} ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false bundler-cache: false
- name: Bundle Install (Jekyll ${{ matrix.jekyll-version }}) - name: Bundle Install (Jekyll ${{ matrix.jekyll-version }})
run: bundle install run: bundle install
env: env:
BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }} BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
- name: Init Search - name: Init Search
run: bundle exec rake search:init run: bundle exec rake search:init
env: env:
BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }} BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
- name: Build Site - name: Build Site
run: bundle exec jekyll build run: bundle exec jekyll build
env: env:
BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }} BUNDLE_GEMFILE: fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
github-pages-build: github-pages-build:
name: Build (github-pages gem) name: Build (github-pages gem)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Ruby - name: Setup Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: "3.2" ruby-version: "3.3"
bundler-cache: false bundler-cache: false
- name: Bundle Install - name: Bundle Install
run: bundle install run: bundle install
env: env:
BUNDLE_GEMFILE: fixtures/Gemfile-github-pages BUNDLE_GEMFILE: fixtures/Gemfile-github-pages
- name: Build Site - name: Build Site
run: bundle exec jekyll build run: bundle exec jekyll build
env: env:
BUNDLE_GEMFILE: fixtures/Gemfile-github-pages BUNDLE_GEMFILE: fixtures/Gemfile-github-pages
validate: validate:
name: Validate HTML name: Validate HTML
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
ruby-version: ["3.2"] ruby-version: ["3.3"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -96,13 +96,13 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [18.x] node-version: [20.x]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm install - run: npm install
- run: npm test - run: npm test