-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
20 changed files
with
532 additions
and
583 deletions.
There are no files selected for viewing
247 changes: 88 additions & 159 deletions
247
src/Cake.Common.Tests/Fixtures/Build/GitHubActionsCommandsFixture.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Cake.Common/Build/GitHubActions/Commands/Artifact/CreateArtifactRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record CreateArtifactRequest( | ||
[property: JsonPropertyName("version")] | ||
int Version, | ||
[property: JsonPropertyName("name")] | ||
string Name, | ||
[property: JsonPropertyName("workflow_run_backend_id")] | ||
string WorkflowRunBackendId, | ||
[property: JsonPropertyName("workflow_job_run_backend_id")] | ||
string WorkflowJobRunBackendId); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Cake.Common/Build/GitHubActions/Commands/Artifact/CreateArtifactResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record CreateArtifactResponse( | ||
[property: JsonPropertyName("ok")] | ||
bool Ok, | ||
[property: JsonPropertyName("signed_upload_url")] | ||
string SignedUploadUrl); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Cake.Common/Build/GitHubActions/Commands/Artifact/FinalizeArtifactRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record FinalizeArtifactRequest( | ||
[property: JsonPropertyName("name")] | ||
string Name, | ||
[property: JsonPropertyName("hash")] | ||
string Hash, | ||
[property: JsonPropertyName("size")] | ||
long Size, | ||
[property: JsonPropertyName("workflow_run_backend_id")] | ||
string WorkflowRunBackendId, | ||
[property: JsonPropertyName("workflow_job_run_backend_id")] | ||
string WorkflowJobRunBackendId); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Cake.Common/Build/GitHubActions/Commands/Artifact/FinalizeArtifactResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record FinalizeArtifactResponse( | ||
[property: JsonPropertyName("ok")] | ||
bool Ok, | ||
[property: JsonPropertyName("artifact_id")] | ||
string ArtifactId); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Cake.Common/Build/GitHubActions/Commands/Artifact/GetSignedArtifactURLRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record GetSignedArtifactURLRequest( | ||
[property: JsonPropertyName("workflow_run_backend_id")] | ||
string WorkflowRunBackendId, | ||
[property: JsonPropertyName("workflow_job_run_backend_id")] | ||
string WorkflowJobRunBackendId, | ||
[property: JsonPropertyName("name")] | ||
string Name); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Cake.Common/Build/GitHubActions/Commands/Artifact/GetSignedArtifactURLResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record GetSignedArtifactURLResponse( | ||
[property: JsonPropertyName("name")] | ||
string Name, | ||
[property: JsonPropertyName("signed_url")] | ||
string SignedUrl); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
Oops, something went wrong.