Skip to content

Commit e23b407

Browse files
committed
chore(make): add 'make run' to run program with tests directory
1 parent 9b313e6 commit e23b407

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ WORKSPACE = /go/src/github.com/hanks/terraform-variables-generator
44
DEV_IMAGE = hanks/tfvargen-dev:1.0.0
55
OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
66

7-
.PHONY: dev push build test debug install uninstall clean
7+
.PHONY: dev run push build test debug install uninstall clean
88

99
default: test
1010

1111
dev:
1212
docker build -t $(DEV_IMAGE) .
1313

14+
run:
15+
docker run -it --rm -v $(CUR_DIR):$(WORKSPACE) $(DEV_IMAGE) go run main.go tests
16+
1417
push:
1518
docker push $(DEV_IMAGE)
1619

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ variable "tags" {
181181
## Development
182182

183183
* `make test`, run unit test, coverage test, static analytics
184+
* `make run`, run program to generate `variables.tf` in `tests` directory
184185
* `make build`, cross compile binaries, and put into `dist/bin` directory
185186
* `make debug`, use `dlv` to do the `gdb-style` debug
186187
* `make dev`, build docker image used in dev

0 commit comments

Comments
 (0)