github action to run integration tests on push

This commit is contained in:
Matthew R Kasun 2021-04-15 11:22:04 -04:00
parent f6880f7700
commit b4afb373bf

23
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Integration Test
on:
push:
jobs:
tests:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4.2
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: mongoadmin
MONGO_INITDB_ROOT_PASSWORD: mongopass
steps:
- name: Checkout
uses: actions/checkout@v2
- name: run tests
run: |
cd test
go test . -v