Skip to content

Commit

Permalink
refresh CI workflows
Browse files Browse the repository at this point in the history
- update latest Ruby version to 3.3
- update Node.js version to 22
- upgrade GitHub Actions
  • Loading branch information
mojavelinux committed Nov 25, 2024
1 parent f1b9023 commit 1c83568
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
ruby: ['2.7', '3.2']
ruby: ['2.7', '3.3']
exclude:
- os: ubuntu-latest
ruby: '3.2'
ruby: '3.3'
include:
- os: ubuntu-latest
ruby: '3.2'
ruby: '3.3'
primary: primary
runs-on: ${{ matrix.os }}
env:
BUNDLE_WITHOUT: coverage:lint
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Enable lint and coverage (primary only)
if: matrix.primary
run: |
Expand All @@ -62,9 +62,9 @@ jobs:
run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec
- name: Install Node.js
if: matrix.primary
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
- name: Run smoke test for npm package
if: matrix.primary
working-directory: js
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ jobs:
environment: releases
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
ruby-version: '3.3'
bundler-cache: false
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
- name: Install Ruby dependencies
run: |
bundle config --local path vendor/bundle
bundle config --local without coverage
bundle --jobs 3 --retry 3
- name: Run linter
run: bundle exec rake lint
Expand Down

0 comments on commit 1c83568

Please sign in to comment.