forked from ssowonny/diff-pages-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 723 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: build test ci sh
PROJECT_NAME := $(notdir $(CURDIR))
default: build
help:
@echo 'Development commands for diff-pages-action:'
@echo
@echo 'Usage:'
@echo ' make build Build docker image.'
@echo ' make test Run test on the docker image.'
@echo ' make ci Install npm dependencies.'
@echo ' make sh Execute shell on the docker image.'
@echo
build:
docker build . -t $(PROJECT_NAME)
test:
docker run -it -v $(PWD):/diff-pages-action --entrypoint npm $(PROJECT_NAME) test
ci:
docker run -it -v $(PWD):/diff-pages-action --entrypoint npm $(PROJECT_NAME) ci
sh:
docker run -it -v $(PWD):/diff-pages-action --entrypoint /bin/bash $(PROJECT_NAME)