Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
Add coverlet.msbuild to the DataLake.UnitTests project.
  • Loading branch information
eminencegrs committed Jan 28, 2024
1 parent f7e5619 commit aac37a5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Update Coverlet
run: dotnet tool update -g coverlet.console
- name: Build
run: dotnet build --no-restore
- name: Test and Collect Code Coverage
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Debug Files
run: |
echo "Contents of project root directory:"
ls -R ./
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# azure-integration
# Azure Integration

### Statuses
[![.NET](https://github.com/eminencegrs/azure-integration/actions/workflows/dotnet.yml/badge.svg)](https://github.com/eminencegrs/azure-integration/actions/workflows/dotnet.yml)
[![codecov](https://codecov.io/gh/eminencegrs/azure-integration/graph/badge.svg?token=8RKPKNMKFQ)](https://codecov.io/gh/eminencegrs/azure-integration)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit aac37a5

Please sign in to comment.