35 lines
No EOL
797 B
YAML
35 lines
No EOL
797 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
# push:
|
|
# branches: [ main, develop ]
|
|
# pull_request:
|
|
# branches: [ main, develop ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '9.0.x'
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --no-restore
|
|
|
|
- name: Test with coverage
|
|
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info
|
|
|
|
# - name: Upload coverage to Codecov
|
|
# uses: codecov/codecov-action@v3
|
|
# with:
|
|
# file: ./lcov.info
|
|
# fail_ci_if_error: false |