-
Notifications
You must be signed in to change notification settings - Fork 50
40 lines (38 loc) · 1.4 KB
/
addons.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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