-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.19 KB
/
Copy pathpullrequest.yml
File metadata and controls
44 lines (35 loc) · 1.19 KB
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 Pull Requests
on:
pull_request:
branches:
- master
jobs:
build:
name: "Build and Test Pull Requests"
env:
ASPNETCORE_ENVIRONMENT: "Production"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
eventstoreversion: [4.0.3, 5.0.7, 6.0.0-preview3-bionic]
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Restore Nuget Packages
run: dotnet restore SubscriptionService.sln --source https://api.nuget.org/v3/index.json
- name: Build Code
run: dotnet build SubscriptionService.sln --configuration Release
- name: Run Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "test\SubscriptionService.UnitTests\SubscriptionService.UnitTests.csproj"
dotnet test "test\SubscriptionService.IntegrationTests\SubscriptionService.IntegrationTests.csproj"
env:
ESVersion: ${{ matrix.eventstoreversion }}
- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v1