-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (34 loc) · 1003 Bytes
/
dotnet-ci.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
name: Build server
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
# For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ${{ matrix.os }}
env:
Solution_Name: dotnet-bsp.sln
Test_Project_Path: test/bsp-server.tests.csproj
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Restore the application
run: dotnet restore --locked-mode ${{ env.Solution_Name }}
- name: Build
run: dotnet build --no-restore ${{ env.Solution_Name }}
- name: Execute unit tests
run: dotnet test --no-build ${{ env.Solution_Name }}