From 1f36e5b263f45294342eab9a7c227d79d5dda8d4 Mon Sep 17 00:00:00 2001 From: Spencer Farley <2847259+farlee2121@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:04:05 -0500 Subject: [PATCH] Split out a CI fake target so slower tests can run on PRs and release, but not in local dev loop --- .github/workflows/build.yaml | 2 +- build.fsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bca5be4b..35587c7e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,6 +16,6 @@ jobs: uses: actions/setup-dotnet@v4 with: global-json-file: "./global.json" - - run: ./fake build --target Pack + - run: ./fake build --target CI env: NUGET_TOKEN: ${{secrets.NUGET_RELEASE_KEY}} diff --git a/build.fsx b/build.fsx index 2a55ae7e..f9e73cea 100644 --- a/build.fsx +++ b/build.fsx @@ -172,6 +172,7 @@ Target.create "Release" (fun _ -> ) Target.create "All" ignore +Target.create "CI" ignore "CheckEnv" ==> "Release" @@ -181,9 +182,10 @@ Target.create "All" ignore ==> "BuildBenchmarkDotNet" ==> "BuildTest" ==> "RunTest" - ==> "RunBenchmarkDotNetTest" ==> "Pack" ==> "All" + ==> "RunBenchmarkDotNetTest" + ==> "CI" ==> "Push" ==> "Release"