Skip to content

Merge pull request #81 from armentanoc/armentanoc/coveralls #109

Merge pull request #81 from armentanoc/armentanoc/coveralls

Merge pull request #81 from armentanoc/armentanoc/coveralls #109

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./src
- name: Build
run: dotnet build --no-restore
working-directory: ./src
- name: Test
run: dotnet test SmartRefund/SmartRefund.Tests/TestResults/coverage.info
working-directory: ./src
/p:CollectCoverage=true
/p:CoverletOutput=TestResults/
/p:CoverletOutputFormat=lcov
- name: Publish coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.CODECOV_TOKEN }}
path-to-lcov: SmartRefund/SmartRefund.Tests/TestResults/coverage.info