1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-24 21:48:35 +01:00

restructure cake script to run tests separately

This commit is contained in:
Ell 2024-10-26 23:59:42 +02:00
parent 1ca50f2869
commit 653eaadb78
2 changed files with 6 additions and 4 deletions

View file

@ -23,7 +23,9 @@ jobs:
- name: Run Publish
uses: coactions/setup-xvfb@v1
with:
run: dotnet cake --target Publish --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
run: dotnet cake --target Test --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
- name: Run Publish
run: dotnet cake --target Publish --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
BAGET_KEY: ${{ secrets.BAGET_KEY }}

View file

@ -36,7 +36,7 @@ Task("Build").IsDependentOn("Prepare").Does(() =>{
DotNetBuild("MLEM.KNI.sln", settings);
});
Task("Test").IsDependentOn("Build").Does(() => {
Task("Test").IsDependentOn("Prepare").Does(() => {
var settings = new DotNetTestSettings {
Configuration = config,
Collectors = {"XPlat Code Coverage"},
@ -47,7 +47,7 @@ Task("Test").IsDependentOn("Build").Does(() => {
DotNetTest("MLEM.KNI.sln", settings);
});
Task("Pack").IsDependentOn("Test").Does(() => {
Task("Pack").IsDependentOn("Prepare").Does(() => {
var settings = new DotNetPackSettings {
Configuration = config,
ArgumentCustomization = args => args.Append($"/p:Version={version}")
@ -90,7 +90,7 @@ Task("PublishWeb").Does(() => {
});
});
Task("Default").IsDependentOn("Pack");
Task("Default").IsDependentOn("Build").IsDependentOn("Test").IsDependentOn("Pack");
Task("Publish").IsDependentOn("Push");
RunTarget(target);