Skip to content

Commit

Permalink
Merge pull request #93 from CommunityToolkit/88-85-golang
Browse files Browse the repository at this point in the history
Golang Cache in worflows and Tests improvement
  • Loading branch information
aaronpowell authored Oct 10, 2024
2 parents 7d8e38d + 29aad5b commit 9d637e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
name: Set up Go
with:
go-version: '^1.22.1'
cache-dependency-path: |
./**/go.sum
- uses: actions/setup-java@v4
name: Set up Java
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
name: Set up Go
with:
go-version: '^1.22.1'
cache-dependency-path: |
./**/go.sum
- uses: actions/setup-java@v4
name: Set up Java
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
name: Set up Go
with:
go-version: '^1.22.1'
cache-dependency-path: |
./**/go.sum
- uses: actions/setup-java@v4
name: Set up Java
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ namespace Aspire.CommunityToolkit.Hosting.Golang.Tests;
#pragma warning disable CTASPIRE001
public class AppHostTests(AspireIntegrationTestFixture<Projects.Aspire_CommunityToolkit_Hosting_Golang_AppHost> fixture) : IClassFixture<AspireIntegrationTestFixture<Projects.Aspire_CommunityToolkit_Hosting_Golang_AppHost>>
{
[Theory(Skip = "https://github.com/CommunityToolkit/Aspire/issues/85")]
[InlineData("golang")]
public async Task ResourceStartsAndRespondsOk(string appName)
[Fact]
public async Task ResourceStartsAndRespondsOk()
{
var appName = "golang";
var httpClient = fixture.CreateHttpClient(appName);

await fixture.App.WaitForTextAsync("Listening and serving HTTP on :8080", appName).WaitAsync(TimeSpan.FromMinutes(2));
await fixture.App.WaitForTextAsync("Listening and serving HTTP on :8080", appName).WaitAsync(TimeSpan.FromMinutes(5));

var response = await httpClient.GetAsync("/ping");

response.StatusCode.Should().Be(HttpStatusCode.OK);
}
}
}

0 comments on commit 9d637e7

Please sign in to comment.