File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,18 @@ namespace GitVersion.App.Tests
1414 [ TestFixture ]
1515 public class TagCheckoutInBuildAgentTests
1616 {
17+ [ Test ]
18+ public async Task VerifyTagCheckoutOnAzurePipelines ( )
19+ {
20+ var env = new Dictionary < string , string >
21+ {
22+ { AzurePipelines . EnvironmentVariableName , "true" } ,
23+ { "BUILD_SOURCEBRANCH" , "refs/tags/0.2.0" } ,
24+ } ;
25+
26+ await VerifyTagCheckoutVersionIsCalculatedProperly ( env ) ;
27+ }
28+
1729 [ Test ]
1830 public async Task VerifyTagCheckoutOnGitHubActions ( )
1931 {
@@ -23,6 +35,11 @@ public async Task VerifyTagCheckoutOnGitHubActions()
2335 { "GITHUB_REF" , "ref/tags/0.2.0" } ,
2436 } ;
2537
38+ await VerifyTagCheckoutVersionIsCalculatedProperly ( env ) ;
39+ }
40+
41+ private static async Task VerifyTagCheckoutVersionIsCalculatedProperly ( Dictionary < string , string > env )
42+ {
2643 using var fixture = new EmptyRepositoryFixture ( ) ;
2744 var remoteRepositoryPath = PathHelper . GetTempPath ( ) ;
2845 RepositoryFixtureBase . Init ( remoteRepositoryPath ) ;
You can’t perform that action at this time.
0 commit comments