Skip to content

Commit

Permalink
Merge pull request #10 from leoafarias/patch-2
Browse files Browse the repository at this point in the history
Added conditional for tests for dart packages
  • Loading branch information
sakebook authored Dec 27, 2019
2 parents de9a73f + de2fcf2 commit b363d86
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,27 @@ EOF
echo "OK"
}

test_dart() {
echo "Run test for dart"
pub get
pub test
}

test_flutter() {
echo "Run test for flutter"
flutter pub get
flutter test
}

run_test_if_needed() {
if "${INPUT_SKIP_TEST}"; then
echo 'Skip test'
else
echo "Run test"
flutter pub get
flutter test
if "${INPUT_FLUTTER_PACKAGE}"; then
test_flutter()
else
test_dart()
fi
fi
}

Expand Down

0 comments on commit b363d86

Please sign in to comment.