-
-
Notifications
You must be signed in to change notification settings - Fork 53
Add CI workflow to run Flutter unit tests on PRs to master #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a GitHub Actions workflow to automatically run Flutter unit tests and collect coverage reports on pull requests and pushes to the master branch.
- Implements CI automation for Flutter testing with coverage reporting
- Adds dependency caching and concurrency controls for efficient CI resource usage
- Configures artifact upload for coverage reports to enable future analysis
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@copilot This PR will be requiring a rebase on the latest master now. |
Co-authored-by: java-james <22756998+java-james@users.noreply.github.com>
Co-authored-by: java-james <22756998+java-james@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: java-james <22756998+java-james@users.noreply.github.com>
d887a44 to
4e863b5
Compare
This PR adds a GitHub Actions workflow to automatically run Flutter unit tests on pull requests targeting the master branch and on pushes to master.
The workflow includes:
flutter test --coverageon every PR and push to masterpubspec.lockhash for faster buildscoverage/lcov.infoas an artifact for each test runubuntu-latestfor consistent, fast executionThe workflow will fail if any unit tests fail, ensuring code quality is maintained. Coverage reports will be available as downloadable artifacts from each workflow run.
Once merged, this can be configured as a required status check in branch protection rules to ensure all PRs have passing tests before merge.
Fixes #132.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/flutter_infra_release/flutter/1e9a811bf8e70466596bcf0ea3a8b5adb5f17f7f/dart-sdk-linux-x64.zipcurl --retry 3 --continue-at - --location --output /tmp/flutter/bin/cache/dart-sdk-linux-x64.zip REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.