Add init before test

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-07-02 00:05:43 +09:00
parent 62fde0587f
commit 3bdf54164a
No known key found for this signature in database
GPG key ID: 5388F56C75B677A1

View file

@ -119,6 +119,7 @@ jobs:
actual="v$(cat package.json | jq -r '.version' | awk -F. '{print $1}')"
if [ $excepted = $actual ]
then
yarn init || echo -e '\033[0;33mInitialization Not Required\033[0;39m'
yarn test
else
echo -e '\033[0;33mTest Aborted\033[0;39m'