-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (48 loc) · 2.09 KB
/
dotnet-macos.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
45
46
47
48
49
50
51
52
53
name: MacOS (dotnet build and test)
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
os-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Clone and run Authentication
run: |
git clone https://github.com/EasyMicroservices/Authentications-Microservice.git
cd Authentications-Microservice
dotnet run --project src/CSharp/EasyMicroservices.AuthenticationsMicroservice.WebApi/EasyMicroservices.AuthenticationsMicroservice.WebApi.csproj &
AUTH_PID=$!
echo "Started Authentication Service with PID $AUTH_PID"
cd ..
shell: bash
- name: Clone and run WhiteLabel
run: |
git clone https://github.com/EasyMicroservices/WhiteLabels-Microservice.git
cd WhiteLabels-Microservice
dotnet run --project src/CSharp/EasyMicroservices.WhiteLabelsMicroservice.WebApi/EasyMicroservices.WhiteLabelsMicroservice.WebApi.csproj &
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Cores.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Cores.sln --no-restore
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.Cores.sln --no-build --verbosity normal -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.Cores.sln --no-build --verbosity normal -f net7.0
dotnet test ./src/CSharp/EasyMicroservices.Cores.sln --no-build --verbosity normal -f net8.0
- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
kill $AUTH_PID echo "Authentication Service shutdown failed"
echo "Shutting down WhiteLabel Service with PID $WHITELABEL_PID"
kill $WHITELABEL_PID echo "WhiteLabel Service shutdown failed"