Skip to content

Commit

Permalink
Test with docker - make test
Browse files Browse the repository at this point in the history
  • Loading branch information
YuviGold committed Jul 26, 2020
1 parent f075bef commit c2ef9db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test:
docker-compose run --rm test make _test

_test:
go test

13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'

services:
test:
image: golang
cap_add:
- CAP_NET_ADMIN
volumes:
- ${PWD}:/src
- ${HOME}/.cache/go-build:/go/pkg/mod
working_dir: /src
environment:
- GOCACHE=/go/pkg/mod

0 comments on commit c2ef9db

Please sign in to comment.