Skip to content

feat: add support for custom runners in reusable workflows - #72

Merged
luxass merged 3 commits into
mainfrom
runs-on
Sep 16, 2026
Merged

luxass merged 3 commits into
mainfrom
runs-on

Conversation

@luxass

@luxass luxass commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Adds an optional runs-on input (default ubuntu-latest) to reusable-ci.yaml and reusable-test.yaml, with jobs now using runs-on: ${{ inputs.runs-on }}.

This allows callers to fan out across operating systems, e.g.:

strategy:
  matrix:
    os: [ubuntu-latest, macos-latest, windows-latest]
uses: luxass/shared-workflows/.github/workflows/reusable-test.yaml@v0.11.2
with:
  runs-on: ${{ matrix.os }}

Docs updated in reusable-ci.md and reusable-test.md. Fully backwards compatible.

Summary by CodeRabbit

  • New Features
    • Reusable CI and test workflows now support selecting a custom runner platform, including Linux, macOS, and Windows.
    • Existing workflows continue to use Ubuntu by default.
    • Added documentation and examples for custom runners and operating system matrices.

Added the ability to specify custom runners in the reusable CI workflow. This allows users to choose different environments for their CI jobs, enhancing flexibility and compatibility with various project requirements.
…kflows

This update introduces the ability to specify the `runs-on` input for the test job, allowing users to select the operating system for their CI runs. The workflow now supports running tests across multiple OS environments using a matrix strategy.
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 0f0ad54d-5acf-4de1-a363-46693fa389be

📥 Commits

Reviewing files that changed from the base of the PR and between dc5bd39 and 305de34.

📒 Files selected for processing (4)
  • .github/workflows/reusable-ci.md
  • .github/workflows/reusable-ci.yaml
  • .github/workflows/reusable-test.md
  • .github/workflows/reusable-test.yaml
 ________________________________________________________________
< Paging Dr. CodeRabbit. Dr. CodeRabbit to the code review room. >
 ----------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch runs-on

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@luxass
luxass merged commit 95e3884 into main Sep 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant