Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/setup-runtimes-caching/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
- name: Install Aspire CLI
uses: timheuer/setup-aspire@v0.1.0
with:
quality: release # temp workaround until url is fixed
quality: release

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -52,7 +52,7 @@ runs:
cache-dependency-path: |
./examples/golang/gin-api/go.sum

- uses: actions/setup-java@v5
- uses: actions/setup-java@v4
name: Set up Java
with:
distribution: "microsoft"
Expand Down
3 changes: 1 addition & 2 deletions eng/testing/validate-typescript-apphost.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ param(
[Parameter(Mandatory = $true)]
[string]$PackageName,

[Parameter(Mandatory = $true)]
[string[]]$WaitForResources,
[string[]]$WaitForResources = @(),

[string[]]$RequiredCommands = @(),

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { createBuilder } from './.modules/aspire.js';

const builder = await createBuilder();

const mysql = await builder.addMySql('mysql');

await mysql
.withAdminer({
configureContainer: async (_adminer) => { },
containerName: 'mysql-adminer'
})
.withDbGate({
configureContainer: async (_dbGate) => { },
containerName: 'mysql-dbgate'
});

const resolvedMySql = await mysql;
const _primaryEndpoint = await resolvedMySql.primaryEndpoint.get();
const _host = await resolvedMySql.host.get();
const _port = await resolvedMySql.port.get();
const _connectionString = await resolvedMySql.connectionStringExpression.get();

await builder.build().run();
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"appHost": {
"path": "apphost.ts",
"language": "typescript/nodejs"
},
"profiles": {
"https": {
"applicationUrl": "https://localhost:29750;http://localhost:28931",
"environmentVariables": {
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:10975",
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:13319"
}
}
},
"packages": {
"Aspire.Hosting.MySql": "",
"CommunityToolkit.Aspire.Hosting.MySql.Extensions": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';

export default defineConfig({
files: ['apphost.ts'],
extends: [tseslint.configs.base],
languageOptions: {
parserOptions: {
projectService: true,
},
},
rules: {
'@typescript-eslint/no-floating-promises': ['error', { checkThenables: true }],
},
});
Loading
Loading