-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 849 Bytes
/
main.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
name: Publish
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Restore
run: dotnet restore ./Server_Side/Server_Side.sln
- name: Build
run: dotnet build ./Server_Side/Server_Side.sln --configuration Release --no-restore
- name: Run Unit Tests In DatabaseAnalysisModuleTests Folder
run: dotnet test DatabaseAnalysisModuleTests/DatabaseAnalysisModuleTests.csproj
- name: Publish Test Results DatabaseAnalysisModuleTests Folder
uses: actions/upload-artifact@v2
with:
name: test-results-database
path: DatabaseAnalysisModuleTests/TestResults