diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0157322..13f3cfc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/build.cake b/build.cake index 0b97a99..8ffad12 100644 --- a/build.cake +++ b/build.cake @@ -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);