Fix action for non flutter projects
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
name: stream_flutter_workflow
|
name: stream_flutter_workflow
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -70,7 +69,25 @@ jobs:
|
|||||||
find . -maxdepth 12 -name "*.java" -print0 \| xargs -0 java -jar $HOME/google-java-format.jar --replace
|
find . -maxdepth 12 -name "*.java" -print0 \| xargs -0 java -jar $HOME/google-java-format.jar --replace
|
||||||
./.github/workflows/scripts/validate-formatting.sh
|
./.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
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
@@ -85,5 +102,5 @@ jobs:
|
|||||||
run: melos bootstrap
|
run: melos bootstrap
|
||||||
- name: 'Flutter Test'
|
- name: 'Flutter Test'
|
||||||
run: |
|
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
|
flutter test
|
||||||
Reference in New Issue
Block a user