-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (31 loc) · 1003 Bytes
/
coverage.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: Engine coverage
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.101
- name: Restore dependencies
working-directory: ./Engine
run: dotnet restore
- name: Build
working-directory: ./Engine
run: dotnet build --no-restore
- name: Install dotnet-coverage
run: dotnet tool install --global dotnet-coverage
- name: Test with coverage
working-directory: ./Engine
run: dotnet-coverage collect -f cobertura -s docs/scripts/coverage.settings.xml -o "coverage.cobertura.xml" "dotnet test"
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: Engine/coverage.cobertura.xml
name: Friflo.Engine.ECS