From 2b408a0ab1f407e960bc7a27e17d70ed8bf18625 Mon Sep 17 00:00:00 2001 From: Nano Taboada <87288+nanotaboada@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:26:52 -0300 Subject: [PATCH] feat: update GitHub Actions workflow with testing --- .github/workflows/dotnet.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3562526..bcb8925 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,5 +23,11 @@ jobs: dotnet-version: 7.0.x - name: Restore dependencies run: dotnet restore - - name: Build project + - name: Build projects run: dotnet build --no-restore + - name: Run unit tests and collect coverage + run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}