Skip to content

ci: use matrix.os for runs-on to test across operating systems - #708

Open
reginaldalfret wants to merge 1 commit into
spotify:mainfrom
reginaldalfret:spotify/issue-695-ci-runs-on-matrix-os
Open

reginaldalfret wants to merge 1 commit into
spotify:mainfrom
reginaldalfret:spotify/issue-695-ci-runs-on-matrix-os

Conversation

@reginaldalfret

Copy link
Copy Markdown

Summary

Fixes .github/workflows/ci.yml so that unit tests are properly executed across Ubuntu, macOS, and Windows runners instead of repeating tests exclusively on Ubuntu 22.04.

Problem

In .github/workflows/ci.yml, runs-on was hardcoded to ubuntu-22.04 rather than referencing ${{ matrix.os }}. Additionally, the ubuntu-20.04 matrix entry used a deprecated GitHub Actions runner image.

Solution

  1. Update runs-on: ${{ matrix.os }} to dynamically evaluate the operating system axis.
  2. Update ubuntu-20.04 to ubuntu-latest in the os matrix.

Testing

  • Verified workflow YAML syntax.
  • Confirmed GitHub Actions will launch jobs for Ubuntu, macOS, and Windows as intended.

Fixes #695

Fixes spotify#695

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
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.

CI: os matrix is never used — all 21 jobs run on ubuntu-22.04, macOS/Windows never tested

1 participant