-
Notifications
You must be signed in to change notification settings - Fork 109
49 lines (40 loc) · 1.31 KB
/
Build.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
47
48
49
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Avoid shallow clone for Nerdbank.GitVersioning
fetch-depth: 0
- uses: dotnet/nbgv@master
id: nbgv
with:
setAllVars: true
setCommonVars: true
- run: "echo 'SemVer2: ${{ steps.nbgv.outputs.SemVer2 }}'"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.200"
include-prerelease: true
- name: Install WASM tools
run: dotnet workload install wasm-tools
- name: Restore NuGet Packages & Tools
run: dotnet run --project build -c Release --no-launch-profile -- restore restore-tools
- name: Build
run: dotnet run --project build -c Release --no-launch-profile -- --configuration Debug --framework net7.0 build
- name: Run tests
run: dotnet run --project build -c Release --no-launch-profile -- --configuration Debug --framework net7.0 coverage
- name: Codecov
uses: codecov/[email protected]
with:
name: codecov-bot
file: artifacts/tests/output/*.xml
flags: unit
# fail_ci_if_error: true