Add GitHub Actions workflow for Ruby testing#1176
Open
rayartemexatatto-cent wants to merge 1 commit intogithub:mainfrom
Open
Add GitHub Actions workflow for Ruby testing#1176rayartemexatatto-cent wants to merge 1 commit intogithub:mainfrom
rayartemexatatto-cent wants to merge 1 commit intogithub:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow to run the repository’s Ruby/Rake checks in CI.
Changes:
- Introduces a new
.github/workflows/ruby.ymlworkflow triggered on pushes and PRs tomain. - Runs
bundle exec rakeusingruby/setup-rubywithbundler-cache, across a Ruby version matrix.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby-version }} | ||
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
There was a problem hiding this comment.
The workflow runs bundle exec rake, but it doesn’t install the npm dependencies required for the Jekyll build (e.g., assets/css/index.scss imports @primer/css/index.scss, which comes from node_modules, and _config.yml includes node_modules in Sass load paths). This job will fail unless Node is set up and npm ci/npm install is run before Rake.
Suggested change
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install npm dependencies | |
| run: npm ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Questions
Next steps
Review