File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/GitVersion.MsBuild.Tests/Tasks Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ using System . Runtime . InteropServices ;
1
2
using GitVersion . MsBuild . Tasks ;
2
3
using GitVersion . MsBuild . Tests . Helpers ;
3
4
using Microsoft . Build . Utilities . ProjectCreation ;
@@ -74,6 +75,12 @@ public void WriteVersionInfoTaskShouldUpdateBuildNumberInAzurePipeline(string bu
74
75
[ Test ]
75
76
public void WriteVersionInfoTaskShouldLogOutputVariablesToBuildOutputInGitHubActions ( )
76
77
{
78
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) && System . Environment . Version . Major == 7 )
79
+ {
80
+ Assert . Ignore ( "GitHub Actions is disabled on macOS and .Net 7.0" ) ;
81
+ return ;
82
+ }
83
+
77
84
var task = new WriteVersionInfoToBuildLog ( ) ;
78
85
79
86
using var result = ExecuteMsBuildTaskInGitHubActions ( task , GitHubEnvFilePath ) ;
You can’t perform that action at this time.
0 commit comments