Fix action for non flutter projects
Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
name: stream_flutter_workflow
|
||||
|
||||
env:
|
||||
@@ -70,7 +69,25 @@ jobs:
|
||||
find . -maxdepth 12 -name "*.java" -print0 \| xargs -0 java -jar $HOME/google-java-format.jar --replace
|
||||
./.github/workflows/scripts/validate-formatting.sh
|
||||
|
||||
test:
|
||||
test_dart:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: 'Install Flutter'
|
||||
run: ./.github/workflows/scripts/install-flutter.sh stable
|
||||
- name: 'Install Tools'
|
||||
run: ./.github/workflows/scripts/install-tools.sh
|
||||
- name: 'Bootstrap Workspace'
|
||||
run: melos bootstrap
|
||||
- name: 'Flutter Test'
|
||||
run: |
|
||||
melos exec -c 1 --no-flutter --dir-exists=test --ignore="*example*" --ignore="*web*" -- \
|
||||
flutter pub run test
|
||||
|
||||
test_flutter:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
@@ -85,5 +102,5 @@ jobs:
|
||||
run: melos bootstrap
|
||||
- name: 'Flutter Test'
|
||||
run: |
|
||||
melos exec -c 3 --dir-exists=test --ignore="*example*" --ignore="*web*" -- \
|
||||
melos exec -c 3 --flutter --dir-exists=test --ignore="*example*" --ignore="*web*" -- \
|
||||
flutter test
|
||||
Reference in New Issue
Block a user