build(deps): bump MongoDB.Driver in /services/api/Tweek.ApiService #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Addons Tests | |
on: | |
push: | |
paths: | |
- 'addons/**' | |
- '.github/workflows/addons.yaml' | |
jobs: | |
run-context-tests: | |
runs-on: ubuntu-latest | |
container: mcr.microsoft.com/dotnet/sdk:5.0 | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: "true" | |
REDIS_TEST_CONNECTION: "redis:6379" | |
MONGODB_TEST_CONNECTION: "mongodb://mongo:27017" | |
COUCHBASE_TEST_URL: "http://couchbase:8091" | |
services: | |
redis: | |
image: redis:alpine | |
couchbase: | |
image: couchbase:community-4.5.1 | |
mongo: | |
image: mongo:3.6-jessie | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test redis driver | |
working-directory: addons/Context/Tweek.Drivers.Context.Redis.IntegrationTests | |
run: | | |
dotnet test | |
- name: Test Couchbase driver | |
working-directory: addons/Context/Tweek.Drivers.Context.Couchbase.IntegrationTests | |
run: | | |
curl --retry 3 --retry-max-time 10 -v http://couchbase:8091/settings/web -d port=8091 -d username=Administrator -d password=password | |
curl --retry 3 --retry-max-time 10 -v -u Administrator:password -X POST http://couchbase:8091/pools/default/buckets -d authType=sasl -d name=testbucket -d ramQuotaMB=100 -d saslPassword=password | |
dotnet test | |
- name: Test Mongo driver | |
working-directory: addons/Context/Tweek.Drivers.Context.MongoDb.IntegrationTests | |
run: | | |
dotnet test |