-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.25 KB
/
backend.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
name: .NET Core Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
backend-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Privoxy and Dependencies
uses: mstksg/get-package@v1
with:
apt-get: privoxy libbrotli-dev libmbedtls-dev
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: '7.0.x'
- name: Install dependencies
run: dotnet restore "backend/DvbLive.sln"
- name: Build
run: dotnet build "backend/DvbLive.sln" --configuration Release --no-restore
- name: Test
run: dotnet test "backend/DvbLive.sln" --configuration Release --collect "Code Coverage" --no-build
backend-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: '7.0.x'
- name: Install dependencies
run: dotnet restore "backend/DvbLive.sln"
- name: Build
run: dotnet build "backend/DvbLive.sln" --configuration Release --no-restore
- name: Test
run: dotnet test "backend/DvbLive.sln" --configuration Release --collect "Code Coverage" --no-build