-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.59 KB
/
Copy pathci.yml
File metadata and controls
59 lines (48 loc) · 1.59 KB
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
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches: [ master, "feature/**", "fix/**" ]
pull_request:
branches: [ master ]
jobs:
unit-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Cache NuGet packages
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: nuget-${{ runner.os }}-
- name: Restore tools
run: dotnet tool restore
- name: Restore
run: dotnet restore Pointframe.slnx
- name: Build
run: dotnet build Pointframe.Tests/Pointframe.Tests.csproj --no-restore --configuration Release
- name: Format check
run: dotnet format Pointframe/Pointframe.csproj --verify-no-changes --no-restore
- name: Test with coverage
# Hosted CI stays on the unit-test lane only.
# DesktopAutomation and InstallerSmoke run outside this workflow.
run: >
dotnet test Pointframe.Tests/Pointframe.Tests.csproj
--configuration Release
--no-build
--no-restore
--verbosity normal
--filter "Category!=Integration"
--collect:"XPlat Code Coverage"
--results-directory coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/**/coverage.cobertura.xml