Explorar el Código

add script to run from action

Matthew R Kasun hace 4 años
padre
commit
ffd50ed615
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      test/test.script

+ 8 - 0
test/test.script

@@ -0,0 +1,8 @@
+#!/bin/bash
+docker run -d \
+            -e MONGO_INITDB_ROOT_USERNAME:='mongoadmin' \
+            -e MONGO_INITDB_ROOT_PASSWORD:='mongopass' \
+            -p 27017:27017 mongo:4.2 
+go run . --clientmode=off
+cd test
+go test . -v