-
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.
- Loading branch information
1 parent
556217a
commit 55f7721
Showing
3 changed files
with
57 additions
and
0 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,36 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 2 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: stable | ||
- name: Add pub cache bin to PATH | ||
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
- name: Add pub cache to PATH | ||
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Check format | ||
run: dart format --set-exit-if-changed . | ||
- name: Analyze | ||
run: flutter analyze | ||
- name: Run tests | ||
run: flutter test --coverage | ||
- uses: codecov/codecov-action@v5 | ||
with: | ||
fail_ci_if_error: true | ||
files: coverage/locv.info | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
codecov: | ||
require_ci_to_pass: true | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
# excluding examples from the coverage report | ||
ignore: | ||
- "examples" |