-
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
Showing
5 changed files
with
55 additions
and
15 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
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,46 @@ | ||
name: Flutter PR | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- "**.dart" | ||
- "!**.g.dart" | ||
- "!**.freezed.dart" | ||
|
||
jobs: | ||
build: | ||
name: Analyze project source and run tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' # or: 'beta', 'dev' or 'master' | ||
cache: true | ||
|
||
- run: flutter --version | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate with build_runner | ||
run: flutter pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Analyze project source | ||
run: flutter analyze | ||
|
||
- name: Run tests and collect coverage | ||
run: flutter test --coverage test/ | ||
|
||
- name: Clean coverage | ||
run: | | ||
sudo apt-get -y install lcov | ||
lcov -r coverage/lcov.info -o coverage/lcov.info "lib/**.freezed.dart" "lib/**.g.dart" "lib/src/common/localization/**.dart" "test/**.mocks.dart" | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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
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