Repository navigation
52 lines (40 loc) · 1.61 KB
/
Copy pathpullrequest.yml
File metadata and controls
52 lines (40 loc) · 1.61 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
45
46
47
48
49
50
51
52
name: Build and Test Pull Requests
on:
pull_request:
branches:
- main
jobs:
buildlinux:
name: "Build and Test Pull Requests"
env:
ASPNETCORE_ENVIRONMENT: "Production"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Restore Nuget Packages
run: dotnet restore Shared.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- name: Build Code
run: dotnet build Shared.sln --configuration Release
- name: Trust root certificate
run: |
sudo cp ./Shared.EventStoreContext.Tests/certs/ca/ca.crt /usr/local/share/ca-certificates/ca.crt
sudo update-ca-certificates
- name: Run Unit Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "Shared.Tests/Shared.Tests.csproj"
- name: Run API Defaults Tests
run: dotnet test "TransactionProcessing.ApiDefaults.Tests/TransactionProcessing.ApiDefaults.Tests.csproj" --configuration Release
- name: Run Event Store Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "Shared.EventStore.Tests/Shared.EventStore.Tests.csproj"
dotnet test "Shared.EventStoreContext.Tests/Shared.EventStoreContext.Tests.csproj"
- name: Run Integration Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
dotnet test "Shared.IntegrationTesting.Tests/Shared.IntegrationTesting.Tests.csproj"
- uses: actions/upload-artifact@v4.4.3
with:
name: tracelogslinux
path: /home/runner/trace/