mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-01 13:20:50 +01:00
restructure cake script to run tests separately
This commit is contained in:
parent
1ca50f2869
commit
653eaadb78
2 changed files with 6 additions and 4 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -23,6 +23,8 @@ jobs:
|
||||||
- name: Run Publish
|
- name: Run Publish
|
||||||
uses: coactions/setup-xvfb@v1
|
uses: coactions/setup-xvfb@v1
|
||||||
with:
|
with:
|
||||||
|
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 }}
|
run: dotnet cake --target Publish --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
|
||||||
env:
|
env:
|
||||||
NUGET_KEY: ${{ secrets.NUGET_KEY }}
|
NUGET_KEY: ${{ secrets.NUGET_KEY }}
|
||||||
|
|
|
@ -36,7 +36,7 @@ Task("Build").IsDependentOn("Prepare").Does(() =>{
|
||||||
DotNetBuild("MLEM.KNI.sln", settings);
|
DotNetBuild("MLEM.KNI.sln", settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Test").IsDependentOn("Build").Does(() => {
|
Task("Test").IsDependentOn("Prepare").Does(() => {
|
||||||
var settings = new DotNetTestSettings {
|
var settings = new DotNetTestSettings {
|
||||||
Configuration = config,
|
Configuration = config,
|
||||||
Collectors = {"XPlat Code Coverage"},
|
Collectors = {"XPlat Code Coverage"},
|
||||||
|
@ -47,7 +47,7 @@ Task("Test").IsDependentOn("Build").Does(() => {
|
||||||
DotNetTest("MLEM.KNI.sln", settings);
|
DotNetTest("MLEM.KNI.sln", settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Pack").IsDependentOn("Test").Does(() => {
|
Task("Pack").IsDependentOn("Prepare").Does(() => {
|
||||||
var settings = new DotNetPackSettings {
|
var settings = new DotNetPackSettings {
|
||||||
Configuration = config,
|
Configuration = config,
|
||||||
ArgumentCustomization = args => args.Append($"/p:Version={version}")
|
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");
|
Task("Publish").IsDependentOn("Push");
|
||||||
|
|
||||||
RunTarget(target);
|
RunTarget(target);
|
||||||
|
|
Loading…
Reference in a new issue