-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Mastersam07/main
Chore: Add tests for flutter tagger
- Loading branch information
Showing
7 changed files
with
465 additions
and
16 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,42 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
flutter_version: "3.22.x" | ||
java_version: "17.x" | ||
|
||
jobs: | ||
format-and-lint: | ||
name: Linting and tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.java_version }} | ||
- name: Cache Flutter dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: /opt/hostedtoolcache/flutter | ||
key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: ${{ env.flutter_version }} | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Format code | ||
run: dart format . --set-exit-if-changed | ||
- name: Lint analysis | ||
run: flutter analyze --no-pub | ||
- name: Run tests | ||
run: flutter test --coverage | ||
- name: Upload coverage to codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage/lcov.info | ||
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
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.