Skip to content

Commit

Permalink
feat: Add containerized tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Jun 20, 2023
1 parent af2000b commit 6ae6a53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions services/identity-service/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:16 as dependencies
WORKDIR /app
COPY . ./
RUN npm install
EXPOSE 3332
CMD ["npm", "test"]
7 changes: 6 additions & 1 deletion services/identity-service/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
IMAGE:=dockerhub/sunbird-rc-identity-service

.PHONY: docker publish test

docker:
@docker build -t $(IMAGE) .
publish:
@docker push $(IMAGE)
@docker push $(IMAGE)
test:
@docker build -f Dockerfile.test -t $(IMAGE)-test .
@docker run $(IMAGE)-test

0 comments on commit 6ae6a53

Please sign in to comment.