-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (44 loc) · 1.19 KB
/
build-dotnet.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
46
name: ".NET"
on:
workflow_call:
pull_request:
paths:
- "dotnet/**"
- "proto/**"
- ".github/workflows/build-dotnet*"
- ".github/workflows/release-dotnet*"
- "devops/**"
push:
branches:
- main
paths:
- "dotnet/**"
- "proto/**"
- "devops/**"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- run: |
dotnet workload install ios
dotnet restore
dotnet build -c Release -f net6.0 -p:IsBrowser=true ./Trinsic
dotnet build -c Release
dotnet test -c Release -v n /p:CollectCoverage=true /p:CoverletOutput=./ /p:CoverletOutputFormat=cobertura
working-directory: ./dotnet
env:
TEST_SERVER_ENDPOINT: ${{ secrets.TEST_SERVER_ENDPOINT }}
TEST_SERVER_PORT: ${{ secrets.TEST_SERVER_PORT }}
TEST_SERVER_USE_TLS: ${{ secrets.TEST_SERVER_USE_TLS }}