-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add test coverage scripts and GitHub Actions workflow
- Introduced new scripts in melos.yaml for running tests with coverage and combining coverage reports from all packages. - Added a GitHub Actions workflow to automate testing on push and pull request events, including installation of dependencies and uploading coverage reports to Codecov. - Updated README.md to include a Codecov badge for better visibility of test coverage status. These changes enhance the testing infrastructure and improve visibility into code coverage for the Tagflow application.
- Loading branch information
1 parent
ec8cf9a
commit f7021e5
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y lcov | ||
flutter pub get | ||
dart pub global activate coverage | ||
dart pub global activate melos | ||
melos bootstrap | ||
- name: Run tests with coverage | ||
run: | | ||
melos run coverage | ||
melos run combine-coverage | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: coverage/lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters