You can probably copy some of [the `persisent` stuff](https://github.com/yesodweb/persistent/blob/master/.github/workflows/haskell.yml) for this, since it tests `persistent-mongoDB`.