forked from asynkron/protoactor-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.22 KB
/
pull-request.yml
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
41
42
43
44
name: Build and test PRs
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379/tcp
options: --entrypoint redis-server
mongodb:
image: mongo
ports:
- 27017/tcp
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Build
run: dotnet build -c Release
- name: Run tests netcoreapp3.1
env:
ConnectionStrings__MongoDB: mongodb://localhost:${{ job.services.mongodb.ports[27017] }}/ProtoMongo
ConnectionStrings__Redis: localhost:${{ job.services.redis.ports[6379] }},syncTimeout=10000
run: |
dotnet test -c Release --framework netcoreapp3.1 --no-build
- name: Run tests net5.0
env:
ConnectionStrings__MongoDB: mongodb://localhost:${{ job.services.mongodb.ports[27017] }}/ProtoMongo
ConnectionStrings__Redis: localhost:${{ job.services.redis.ports[6379] }},syncTimeout=10000
run: |
dotnet test -c Release --framework net5.0 --no-build