Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
bhekanik committed Jan 24, 2020
1 parent 57ec4cb commit 3825973
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ LABEL com.github.actions.description="Test firestore with the emulators and jest
LABEL com.github.actions.icon="airplay"
LABEL com.github.actions.color="orange"

RUN npm i -g yarn

COPY LICENSE README.md /

COPY entrypoint.sh /entrypoint.sh
Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ else
if [ -f yarn.lock ]; then
setup="yarn --non-interactive --silent --ignore-scripts --production=false &&"
else
setup="NODE_ENV=development npm --prefix functions install &&"
setup="NODE_ENV=development yarn --modules-folder ./functions &&"
fi
fi

echo "## Running Jest"
args=$@
sh -c "$setup ./functions/node_modules/.bin/jest $args"

0 comments on commit 3825973

Please sign in to comment.