Skip to content

Commit 7030585

Browse files
committed
ci: disable Test for alpha-deployment
1 parent 17cf932 commit 7030585

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/alpha-deployment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
.nuke/temp
3737
~/.nuget/packages
3838
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
39-
- name: 'Run: Test, Pack, Publish'
40-
run: ./build.cmd Test Pack Publish
39+
- name: 'Run: Publish'
40+
run: ./build.cmd Publish
4141
env:
4242
FeedzNuGetApiKey: ${{ secrets.FEEDZ_NUGET_API_KEY }}
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build/Build.CI.GitHubActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
GitHubActionsImage.UbuntuLatest,
3535
FetchDepth = 0,
3636
OnPushBranches = new[] { DevelopBranch },
37-
InvokedTargets = new[] { nameof(ITest.Test), nameof(IPack.Pack), nameof(IPublish.Publish) },
37+
InvokedTargets = new[] { nameof(IPublish.Publish) },
3838
EnableGitHubToken = true,
3939
PublishArtifacts = false,
4040
ImportSecrets = new[] { nameof(FeedzNuGetApiKey) })]

build/Build.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ from framework in project.GetTargetFrameworks()
105105

106106
Target ITest.Test => _ => _
107107
.Inherit<ITest>()
108+
.OnlyWhenStatic(() => Host is not GitHubActions { Workflow: AlphaDeployment })
108109
.Partition(2);
109110

110111
bool IReportCoverage.CreateCoverageHtmlReport => true;

0 commit comments

Comments
 (0)