You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/dotnet.yml
+33-16Lines changed: 33 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,39 @@ on:
5
5
branches: [ main ]
6
6
pull_request:
7
7
branches: [ main ]
8
+
9
+
10
+
# Allows you to run this workflow manually from the Actions tab
11
+
workflow_dispatch:
8
12
9
13
jobs:
10
-
build:
11
-
12
-
runs-on: windows-latest
13
-
14
+
15
+
build-and-test:
16
+
runs-on: ubuntu-latest
14
17
steps:
15
-
- uses: actions/checkout@v3
16
-
- name: Setup .NET
17
-
uses: actions/setup-dotnet@v3
18
-
with:
19
-
dotnet-version: 7.0.x
20
-
21
-
- name: Restore dependencies
22
-
run: dotnet restore
23
-
- name: Build
24
-
run: dotnet build --no-restore
25
-
- name: Test
26
-
run: dotnet test --no-build --verbosity normal
18
+
- uses: actions/checkout@v3
19
+
- name: Setup .NET
20
+
uses: actions/setup-dotnet@v3
21
+
with:
22
+
dotnet-version: 7.0.x
23
+
24
+
# run build and test
25
+
- name: Restore dependencies
26
+
run: dotnet restore
27
+
- name: Build
28
+
run: dotnet build --no-restore
29
+
- name: Test
30
+
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=ManagedCode.Repository.Tests/lcov.info
0 commit comments