-
-
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.
* First working test * Create testing yml * Exclude generated mock files * Add another test and update test job * test getVersionSemVer and fix bug in it * remove concurrency check from testing job * First test which mocks hive and riverpod also made add/remove methods async for stored devices * Update testing.yml * remove matrix and prevent duplicate runs on PR * add codecov.yml
- Loading branch information
Showing
11 changed files
with
395 additions
and
21 deletions.
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,26 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '*.md' | ||
pull_request: | ||
jobs: | ||
run-tests: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Environment | ||
uses: ./.github/actions/setup_build | ||
- name: Pre Build Tasks | ||
uses: ./.github/actions/pre_build | ||
- name: Run Tests | ||
run: flutter test --coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,7 @@ android/build/ | |
android/key.properties | ||
|
||
lib/gen/assets.gen.dart | ||
|
||
coverage/ | ||
|
||
*.mocks.dart |
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,15 @@ | ||
coverage: | ||
status: | ||
project: #add everything under here, more options at https://docs.codecov.com/docs/commit-status | ||
default: | ||
# basic | ||
target: auto #default | ||
threshold: 0% | ||
base: auto | ||
comment: #this is a top-level key | ||
layout: " diff, flags, files" | ||
behavior: default | ||
require_changes: false # if true: only post the comment if coverage changes | ||
require_base: false # [true :: must have a base report to post] | ||
require_head: true # [true :: must have a head report to post] | ||
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]] |
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
Oops, something went wrong.