From aac37a557ef7fb5fffc3e1318b1ba3b52229ca8b Mon Sep 17 00:00:00 2001 From: Andrii D Date: Sun, 28 Jan 2024 12:39:02 +0100 Subject: [PATCH] Create dotnet.yml Add coverlet.msbuild to the DataLake.UnitTests project. --- .github/workflows/dotnet.yml | 38 +++++++++++++++++++ README.md | 6 ++- ...zure.Integration.DataLake.UnitTests.csproj | 4 ++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..91d693d --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -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 + diff --git a/README.md b/README.md index 69a02e7..fe983aa 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# azure-integration \ No newline at end of file +# 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) diff --git a/tests/Seneca.Azure.Integration.DataLake.UnitTests/Seneca.Azure.Integration.DataLake.UnitTests.csproj b/tests/Seneca.Azure.Integration.DataLake.UnitTests/Seneca.Azure.Integration.DataLake.UnitTests.csproj index 2847731..2a46b9b 100644 --- a/tests/Seneca.Azure.Integration.DataLake.UnitTests/Seneca.Azure.Integration.DataLake.UnitTests.csproj +++ b/tests/Seneca.Azure.Integration.DataLake.UnitTests/Seneca.Azure.Integration.DataLake.UnitTests.csproj @@ -22,6 +22,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +