Browse Source

add script to run from action

Matthew R Kasun 4 years ago
parent
commit
ffd50ed615
1 changed files with 8 additions and 0 deletions
  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