Merge pull request #307 from DevelappersGmbH/develop #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --filter Category=UnitTest --no-restore --verbosity normal | |
- name: Generate coverage report | |
run: dotnet test --filter Category=UnitTest --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov | |
- name: Publish coverage report to coveralls.io | |
uses: coverallsapp/github-action@v1.0.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./Develappers.BillomatNet.Tests/TestResults/coverage.info | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: ./Develappers.BillomatNet/bin/Release/Develappers.BillomatNet.*.nupkg |