You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 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.
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).
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
🤖 This PR was created by Repo Assist, an automated AI assistant.
Summary
Adds a
strategy.matrixto the CI workflow so tests run against both DartstableandbetaSDKs on every push and pull request.Why
The package declares
sdk: '>=2.12.0 <4.0.0'inpubspec.yaml, but CI previously only tested against the default (stable) SDK. Testing againstbetaas well:Changes
Only
.github/workflows/ci.ymlis modified — no source code, no tests, no dependencies.Test Status
This PR only changes CI configuration. The Dart toolchain is not available in this sandbox environment, so local
dart testcannot 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).
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-artifactsartifact in the workflow run linked above.To apply the patch locally:
Show patch (39 lines)