Skip to content

Commit 58b9d62

Browse files
committed
chore: Add .net tests
1 parent 7b6d4ed commit 58b9d62

34 files changed

+79
-90
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 3
1616
strategy:
1717
matrix:
18-
node:
18+
dotnet:
1919
- 22.x
2020

2121
permissions:
@@ -26,20 +26,20 @@ jobs:
2626
- name: Check out the repo
2727
uses: actions/checkout@v2
2828

29-
# - name: Use Node.js ${{ matrix.node-version }}
30-
# uses: actions/setup-node@v1
31-
# with:
32-
# node-version: ${{ matrix.node-version }}
29+
- name: Use .NET ${{ matrix.dotnet }}
30+
uses: actions/setup-dotnet@v4
31+
with:
32+
node-version: ${{ matrix.dotnet }}
3333

34-
# - name: Install dependencies
35-
# run: |
36-
# npm i
34+
- name: Install dependencies
35+
run: |
36+
npm i
3737
38-
# - name: Run tests
39-
# env:
40-
# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
41-
# run: |
42-
# npx vitest
38+
- name: Run tests
39+
env:
40+
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
41+
run: |
42+
dotnet test src/Gr4vy.Tests
4343
4444
- uses: hmarr/auto-approve-action@v4
4545
if: "github.event.pull_request.user.login == 'github-actions[bot]'"

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.543.6
77
generationVersion: 2.598.22
8-
releaseVersion: 0.0.12
9-
configChecksum: af42e684f2bd6bb2fdcfaafb061f5195
8+
releaseVersion: 0.0.13
9+
configChecksum: 7adf5b0cf91c80c22a60b6de28daa773
1010
published: true
1111
features:
1212
csharp:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: false
1717
oAuth2PasswordEnabled: false
1818
csharp:
19-
version: 0.0.12
19+
version: 0.0.13
2020
additionalDependencies: []
2121
author: Gr4vy
2222
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sources:
88
- latest
99
openapi:
1010
sourceNamespace: openapi
11-
sourceRevisionDigest: sha256:25e5b156e5c0a679caf104480968cc7b6f9a994f2bf4fc7c21113c4584435b57
11+
sourceRevisionDigest: sha256:cc289780ee397df04c387360454cb2c9b5a6e25a6905c78a234000a6aa1ac69a
1212
sourceBlobDigest: sha256:401058100c062781b727963b34eca9058a912382df5931b40d824efb3a76e4f8
1313
tags:
1414
- latest
@@ -17,10 +17,10 @@ targets:
1717
csharp:
1818
source: openapi
1919
sourceNamespace: openapi
20-
sourceRevisionDigest: sha256:25e5b156e5c0a679caf104480968cc7b6f9a994f2bf4fc7c21113c4584435b57
20+
sourceRevisionDigest: sha256:cc289780ee397df04c387360454cb2c9b5a6e25a6905c78a234000a6aa1ac69a
2121
sourceBlobDigest: sha256:401058100c062781b727963b34eca9058a912382df5931b40d824efb3a76e4f8
2222
codeSamplesNamespace: openapi-csharp-code-samples
23-
codeSamplesRevisionDigest: sha256:766695fca1f04884964029aad4dc4558238d5cca2dc465d54b6be0ab8e90c602
23+
codeSamplesRevisionDigest: sha256:13754c433488189d4749ceaaf0e4c0f942243daa29f5df06e56e0932c6787072
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

Gr4vy.sln

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
#
43
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gr4vy", "src\Gr4vy\Gr4vy.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
54
EndProject
6-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3EA29E26-57BF-47C6-B22E-B4486783DAC4}"
7-
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gr4vy.Tests", "src\Gr4vy.Tests\Gr4vy.Tests.csproj", "{C2928DE4-38D1-4D71-AD14-598FECDD961D}"
9-
EndProject
5+
106
Global
117
GlobalSection(SolutionConfigurationPlatforms) = preSolution
128
Debug|Any CPU = Debug|Any CPU
@@ -17,12 +13,5 @@ Global
1713
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
1814
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
1915
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{C2928DE4-38D1-4D71-AD14-598FECDD961D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{C2928DE4-38D1-4D71-AD14-598FECDD961D}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{C2928DE4-38D1-4D71-AD14-598FECDD961D}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{C2928DE4-38D1-4D71-AD14-598FECDD961D}.Release|Any CPU.Build.0 = Release|Any CPU
24-
EndGlobalSection
25-
GlobalSection(NestedProjects) = preSolution
26-
{C2928DE4-38D1-4D71-AD14-598FECDD961D} = {3EA29E26-57BF-47C6-B22E-B4486783DAC4}
2716
EndGlobalSection
28-
EndGlobal
17+
EndGlobal

src/Gr4vy/AccountUpdater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public class AccountUpdater: IAccountUpdater
2323
{
2424
public SDKConfig SDKConfiguration { get; private set; }
2525
private const string _language = "csharp";
26-
private const string _sdkVersion = "0.0.12";
26+
private const string _sdkVersion = "0.0.13";
2727
private const string _sdkGenVersion = "2.598.22";
2828
private const string _openapiDocVersion = "1.0.0";
29-
private const string _userAgent = "speakeasy-sdk/csharp 0.0.12 2.598.22 1.0.0 Gr4vy";
29+
private const string _userAgent = "speakeasy-sdk/csharp 0.0.13 2.598.22 1.0.0 Gr4vy";
3030
private string _serverUrl = "";
3131
private ISpeakeasyHttpClient _client;
3232
private Func<Gr4vy.Models.Components.Security>? _securitySource;

src/Gr4vy/All.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public class All: IAll
3939
{
4040
public SDKConfig SDKConfiguration { get; private set; }
4141
private const string _language = "csharp";
42-
private const string _sdkVersion = "0.0.12";
42+
private const string _sdkVersion = "0.0.13";
4343
private const string _sdkGenVersion = "2.598.22";
4444
private const string _openapiDocVersion = "1.0.0";
45-
private const string _userAgent = "speakeasy-sdk/csharp 0.0.12 2.598.22 1.0.0 Gr4vy";
45+
private const string _userAgent = "speakeasy-sdk/csharp 0.0.13 2.598.22 1.0.0 Gr4vy";
4646
private string _serverUrl = "";
4747
private ISpeakeasyHttpClient _client;
4848
private Func<Gr4vy.Models.Components.Security>? _securitySource;

src/Gr4vy/AuditLogs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public class AuditLogs: IAuditLogs
4141
{
4242
public SDKConfig SDKConfiguration { get; private set; }
4343
private const string _language = "csharp";
44-
private const string _sdkVersion = "0.0.12";
44+
private const string _sdkVersion = "0.0.13";
4545
private const string _sdkGenVersion = "2.598.22";
4646
private const string _openapiDocVersion = "1.0.0";
47-
private const string _userAgent = "speakeasy-sdk/csharp 0.0.12 2.598.22 1.0.0 Gr4vy";
47+
private const string _userAgent = "speakeasy-sdk/csharp 0.0.13 2.598.22 1.0.0 Gr4vy";
4848
private string _serverUrl = "";
4949
private ISpeakeasyHttpClient _client;
5050
private Func<Gr4vy.Models.Components.Security>? _securitySource;

src/Gr4vy/Balances.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public class Balances: IBalances
3939
{
4040
public SDKConfig SDKConfiguration { get; private set; }
4141
private const string _language = "csharp";
42-
private const string _sdkVersion = "0.0.12";
42+
private const string _sdkVersion = "0.0.13";
4343
private const string _sdkGenVersion = "2.598.22";
4444
private const string _openapiDocVersion = "1.0.0";
45-
private const string _userAgent = "speakeasy-sdk/csharp 0.0.12 2.598.22 1.0.0 Gr4vy";
45+
private const string _userAgent = "speakeasy-sdk/csharp 0.0.13 2.598.22 1.0.0 Gr4vy";
4646
private string _serverUrl = "";
4747
private ISpeakeasyHttpClient _client;
4848
private Func<Gr4vy.Models.Components.Security>? _securitySource;

src/Gr4vy/Buyers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public class Buyers: IBuyers
8080
{
8181
public SDKConfig SDKConfiguration { get; private set; }
8282
private const string _language = "csharp";
83-
private const string _sdkVersion = "0.0.12";
83+
private const string _sdkVersion = "0.0.13";
8484
private const string _sdkGenVersion = "2.598.22";
8585
private const string _openapiDocVersion = "1.0.0";
86-
private const string _userAgent = "speakeasy-sdk/csharp 0.0.12 2.598.22 1.0.0 Gr4vy";
86+
private const string _userAgent = "speakeasy-sdk/csharp 0.0.13 2.598.22 1.0.0 Gr4vy";
8787
private string _serverUrl = "";
8888
private ISpeakeasyHttpClient _client;
8989
private Func<Gr4vy.Models.Components.Security>? _securitySource;

0 commit comments

Comments
 (0)