Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
add dotnet unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaKhan220 committed Jan 26, 2024
1 parent d2611b7 commit e6b649e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions stakater-unit-test/helm/templates/clustertask.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ spec:
script: |
mvn clean test
workingDir: $(workspaces.source.path)
when:
- input: "$(workspaces.source.path)/*.xml"
operator: in
values: ["yes"]
- name: test
image: mcr.microsoft.com/dotnet/sdk:6.0
script: |
#!/usr/bin/env sh
set -e
dotnet restore
dotnet build
ls *Tests*/*.csproj | while read -r file;
do dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover "${file}";
done
workingDir: $(workspaces.source.path)
when:
- input: "$(workspaces.source.path)/*.sln"
operator: in
values: ["yes"]
workspaces:
- name: source

0 comments on commit e6b649e

Please sign in to comment.