Skip to content

Conversation

Copy link

Copilot AI commented Aug 19, 2025

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:

  • Automated testing: Runs flutter test --coverage on every PR and push to master
  • Dependency caching: Caches Flutter SDK and pub dependencies using pubspec.lock hash for faster builds
  • Coverage reporting: Uploads coverage/lcov.info as an artifact for each test run
  • Concurrency control: Prevents duplicate workflow runs on the same ref to save CI resources
  • Ubuntu runner: Uses ubuntu-latest for consistent, fast execution

The 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.zip
    • Triggering command: curl --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.

Copilot AI changed the title [WIP] Add CI workflow to run Flutter unit tests on PRs to master Add CI workflow to run Flutter unit tests on PRs to master Aug 19, 2025
Copilot AI requested a review from java-james August 19, 2025 23:10
@java-james java-james marked this pull request as ready for review August 19, 2025 23:22
Copilot AI review requested due to automatic review settings August 19, 2025 23:22
Copy link

Copilot AI left a 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.

@java-james
Copy link
Owner

@copilot This PR will be requiring a rebase on the latest master now.

Copy link
Author

Copilot AI commented Aug 19, 2025

@copilot This PR will be requiring a rebase on the latest master now.

Rebase completed successfully. The PR has been updated to include the latest changes from master (commit 79d6bd2). The workflow file remains unchanged and all commits have been properly rebased. Commit d887a44

Copilot AI and others added 6 commits August 20, 2025 12:59
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>
@java-james java-james merged commit 700a201 into master Aug 20, 2025
1 check 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.

Add CI workflow to run Flutter unit tests on PRs to master

2 participants