Skip to content

Commit

Permalink
Merge pull request #17 from betrybe/fix-action-loop
Browse files Browse the repository at this point in the history
Corrige action em loop
  • Loading branch information
Cairo Noleto authored Nov 8, 2021
2 parents 7f53f92 + bf23fb0 commit e6c59b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/sh -l
set -x
set -e

run_npm_start=$1
wait_for_url=$2

npm install

if $run_npm_start ; then
npm start & npx wait-on $wait_for_url
npm start && npx wait-on $wait_for_url
fi

npm test -- --json --outputFile=evaluation.json
npm test -- --json --forceExit --outputFile=evaluation.json
node /evaluator.js evaluation.json .trybe/requirements.json result.json

if [ $? != 0 ]; then
Expand Down

0 comments on commit e6c59b2

Please sign in to comment.