mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-01 05:10: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
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue