Skip to content

[Repo Assist] ci: add Dart SDK matrix (stable + beta) to CI #83

@github-actions

Description

@github-actions

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds a strategy.matrix to the CI workflow so tests run against both Dart stable and beta SDKs on every push and pull request.

Why

The package declares sdk: '>=2.12.0 <4.0.0' in pubspec.yaml, but CI previously only tested against the default (stable) SDK. Testing against beta as well:

  • Catches breaking changes early — before the next Dart SDK reaches stable
  • Increases confidence in broad SDK compatibility
  • Is standard practice for well-maintained pub.dev packages

Changes

Only .github/workflows/ci.yml is modified — no source code, no tests, no dependencies.

# Before
- uses: dart-lang/setup-dart@v1

# After
strategy:
  matrix:
    sdk: [stable, beta]
...
- uses: dart-lang/setup-dart@v1
  with:
    sdk: $\{\{ matrix.sdk }}

Test Status

This PR only changes CI configuration. The Dart toolchain is not available in this sandbox environment, so local dart test cannot be run. The change is purely additive — it adds a second CI job variant but does not alter what is tested.

CI will run on this PR once a maintainer triggers it (github-actions bot PRs do not auto-trigger CI due to GitHub's security model).

Generated by Repo Assist

To install this workflow, run gh aw add githubnext/agentics/workflows/repo-assist.md@ee49512da7887942965ac0a0e48357106313c9dd. View source at https://github.com/githubnext/agentics/tree/ee49512da7887942965ac0a0e48357106313c9dd/workflows/repo-assist.md.


Note

This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download patch artifact

The patch file is available in the agent-artifacts artifact in the workflow run linked above.

To apply the patch locally:

# Download the artifact from the workflow run https://github.com/fredeil/email-validator.dart/actions/runs/22613026506
# (Use GitHub MCP tools if gh CLI is not available)
gh run download 22613026506 -n agent-artifacts -D /tmp/agent-artifacts-22613026506

# The patch file will be at agent-artifacts/tmp/gh-aw/aw-repo-assist-improve-ci-sdk-matrix-2026-03-03.patch after download
# Apply the patch (--3way handles cross-repo patches where files may already exist)
git am --3way /tmp/agent-artifacts-22613026506/aw-repo-assist-improve-ci-sdk-matrix-2026-03-03.patch
Show patch (39 lines)
From 45cdfac41c361d5495dbf6664117ad4cd3a375a6 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 3 Mar 2026 07:41:28 +0000
Subject: [PATCH] ci: add Dart SDK matrix (stable + beta) to CI workflow

Test against both stable and beta Dart SDKs to catch breakage
from upcoming releases early.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
 .github/workflows/ci.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 01c0212..4325e3b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,11 +9,16 @@ on:
 jobs:
   test:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        sdk: [stable, beta]
     permissions:
       contents: read
     steps:
       - uses: actions/checkout@v4
       - uses: dart-lang/setup-dart@v1
+        with:
+          sdk: ${{ matrix.sdk }}
       - run: dart pub get
       - run: dart format --output=none --set-exit-if-changed .
       - run: dart analyze --fatal-infos
-- 
2.53.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions