-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.42 KB
/
pullrequest.yml
File metadata and controls
43 lines (33 loc) · 1.42 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
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: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Restore Nuget Packages
run: dotnet restore EstateManagement.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- name: Build Code
run: dotnet build EstateManagement.sln --configuration Release
- name: Run Unit Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "EstateManagement.BusinessLogic.Tests\EstateManagement.BusinessLogic.Tests.csproj"
dotnet test "EstateManagement.Aggregates.Tests\EstateManagement.Aggregates.Tests.csproj"
dotnet test "EstateManagement.Tests\EstateManagement.Tests.csproj"
#dotnet test "EstateManagement.Repository.Tests\EstateManagement.Repository.Tests.csproj"
- name: Build Docker Image
run: docker build . --file EstateManagement/Dockerfile --tag estatemanagement:latest
- name: Run Integration Tests
run: dotnet test "EstateManagement.IntegrationTests\EstateManagement.IntegrationTests.csproj" --filter Category=PRTest
- uses: actions/[email protected]
if: ${{ failure() }}
with:
name: tracelogs
path: /home/txnproc/trace/