-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (61 loc) · 1.93 KB
/
dotnet-Test.yml
File metadata and controls
69 lines (61 loc) · 1.93 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-algorithms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./Algorithms
run: dotnet restore
- name: Build
working-directory: ./Algorithms
run: dotnet build --no-restore
- name: Test with dotnet
working-directory: ./Algorithms
run: dotnet test --logger trx --results-directory "TestResults-Algorithms"
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: dotnet-results-algorithms-tests
path: ./Algorithms/TestResults-Algorithms
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
name: dotnet-results-algorithms-tests
path: ./Algorithms/TestResults-Algorithms
test-data-structures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./DataStructures
run: dotnet restore
- name: Build
working-directory: ./DataStructures
run: dotnet build --no-restore
- name: Test with dotnet
working-directory: ./DataStructures
run: dotnet test --logger trx --results-directory "TestResults-DataStructures"
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
with:
name: dotnet-results-data-structures-tests
path: ./DataStructures/TestResults-DataStructures
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
name: dotnet-results-data-structures-tests
path: ./DataStructures/TestResults-DataStructures