Skip to content

chore: adopt testcontainers-go for Postgres, MySQL, MSSQL and MongoDB #2220

chore: adopt testcontainers-go for Postgres, MySQL, MSSQL and MongoDB

chore: adopt testcontainers-go for Postgres, MySQL, MSSQL and MongoDB #2220

Workflow file for this run

on:
push:
branches:
- master
- main
paths:
- 'mongodb/**'
pull_request:
paths:
- 'mongodb/**'
name: "Tests Mongodb"
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.21.x
- 1.22.x
- 1.23.x
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
env:
TEST_MONGODB_IMAGE: docker.io/mongodb:7
run: cd ./mongodb && go test ./... -v -race