-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.32 KB
/
ci.yml
File metadata and controls
49 lines (39 loc) · 1.32 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
name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "9.0.x"
- name: Restore
run: dotnet restore FunctionalStateMachine.sln
- name: Build
run: dotnet build FunctionalStateMachine.sln --configuration Release --no-restore
- name: Test
run: dotnet test FunctionalStateMachine.sln --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings coverage.runsettings --results-directory ./coverage --logger "junit;LogFilePath=${{ github.workspace }}/test-results/{assembly}.xml"
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage
fail_ci_if_error: false
verbose: true
- name: Upload Test Results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./test-results/*.xml
report_type: test_results
fail_ci_if_error: false