-
Notifications
You must be signed in to change notification settings - Fork 26
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
9fecdda
commit 0a2c348
Showing
4 changed files
with
47 additions
and
14 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_call: | ||
inputs: | ||
flutter-version: | ||
required: true | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
File renamed without changes.
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,45 @@ | ||
name: "Testing" | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
CODECOV_TOKEN: | ||
required: true | ||
inputs: | ||
flutter-version: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
testing: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Flutter with exact version | ||
if: ${{ inputs.flutter-version != ''}} | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ inputs.flutter-version }} | ||
|
||
- name: Install Flutter from Stable branch | ||
if: ${{ inputs.flutter-version == ''}} | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "stable" | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Generate files | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Run tests | ||
env: | ||
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} | ||
if: success() | ||
run: | | ||
flutter test --coverage | ||
bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info |