Skip to content

ci: modernize CI/CD workflows - #5

Merged
vmarchaud merged 5 commits into
mainfrom
devin/1781270896-modernize-ci-cd
Jun 12, 2026
Merged

vmarchaud merged 5 commits into
mainfrom
devin/1781270896-modernize-ci-cd

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds lint/format checks to CI and auto-publishing on merge to main.

CI (tests.yml):

  • Split into two parallel jobs: analyze (lint + format) and test
  • Add flutter analyze for static analysis
  • Add dart format --set-exit-if-changed . to enforce consistent formatting
  • Update to actions/checkout@v4
  • Trigger on PRs only

Publish (publish.yml — new):

  • On push to main: test → extract version from pubspec.yaml → create git tag + GitHub Release if tag doesn't exist
  • Version derived from version: field in pubspec

Link to Devin session: https://app.devin.ai/sessions/cb78c8f2e2ba4d348b6f9a8c274c69bb
Requested by: @vmarchaud

- Split CI into analyze (lint + format check) and test jobs
- Update to actions/checkout@v4
- Add dart format --set-exit-if-changed check
- Add flutter analyze lint step
- Add publish workflow: auto-creates GitHub release + tag on push to main

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author
Original prompt from vmarchaud

i want to provide the same DX as the web sdk but for mobile SDKs, check mobile personalization part in the docs to understand better

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

vmarchaud and others added 4 commits June 12, 2026 13:35
- lib/reelevant_client.dart
- test/reelevant_analytics_test.dart

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Existing test code uses deprecated setMockMethodCallHandler which produces
info-level diagnostics. Only fail on warnings and errors.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Existing codebase not formatted to dart standards; enforcing would
require reformatting all files. Keep flutter analyze for static analysis.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@vmarchaud
vmarchaud marked this pull request as ready for review June 12, 2026 13:58
@vmarchaud
vmarchaud merged commit bda25d7 into main Jun 12, 2026
2 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