Set up basic pipeline for testing and building the application

This commit is contained in:
2020-03-01 18:06:39 +11:00
parent de96e65bef
commit 74678ff376
7 changed files with 86 additions and 0 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash -eu
cd $(dirname $0)/..
VERSION=1.0.${GITHUB_RUN_NUMBER-1}
docker build . --file Dockerfile --tag junwei-zhao/zendesk:${VERSION}
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash -eu
cd $(dirname $0)/..
docker-compose run --rm app go test ./... -cover