5 Commits

Author SHA1 Message Date
Claire Kuang e3806f3fb4 marked tolerance as required input
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2024-01-31 11:29:00 +00:00
Claire Kuang 591ff49340 added placeholder schema
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2024-01-31 11:10:02 +00:00
Claire Kuang b1872be922 renames to SpeckleAutomateDotnetExample
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2024-01-30 21:03:28 +00:00
Claire Kuang aff5834508 updates json paths 2024-01-30 20:55:24 +00:00
Claire Kuang 2eccfafe45 updates directory name 2024-01-30 20:48:04 +00:00
6 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ jobs:
run: dotnet restore
- name: Extract functionInputSchema
id: extract_schema
working-directory: "SpeckleRegressionTester"
working-directory: "SpeckleAutomateDotnetExample"
run: |
dotnet build
dotnet run generate-schema ${HOME}/functionSchema.json
@@ -29,7 +29,7 @@ jobs:
- name: Speckle Automate Function - Build and Publish
uses: specklesystems/speckle-automate-github-composite-action@0.7.2
with:
speckle_function_command: "dotnet SpeckleRegressionTester.dll"
speckle_function_command: "dotnet SpeckleAutomateDotnetExample.dll"
speckle_automate_url: ${{ env.SPECKLE_AUTOMATE_URL }}
speckle_token: ${{ secrets.SPECKLE_FUNCTION_TOKEN }}
speckle_function_id: ${{ secrets.SPECKLE_FUNCTION_ID }}
+1 -1
View File
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build-env
WORKDIR /src
COPY SpeckleRegressionTester/ .
COPY SpeckleAutomateDotnetExample/ .
RUN dotnet restore --use-current-runtime
RUN dotnet publish --use-current-runtime --self-contained false --no-restore -o /publish
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpeckleRegressionTester", "SpeckleAutomateDotnetExample\SpeckleRegressionTester.csproj", "{E1DE5809-1111-4817-9B7D-7ADCA087FA1C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpeckleAutomateDotnetExample", "SpeckleAutomateDotnetExample\SpeckleAutomateDotnetExample.csproj", "{E1DE5809-1111-4817-9B7D-7ADCA087FA1C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -37,6 +37,8 @@ static class AutomateFunction
throw new Exception("Release branch has no commits");
}
var tolerance = functionInputs.Tolerance;
Console.WriteLine($"Comparing {testBranchName} against {releaseBranchName}");
// get the test and release commits
@@ -7,8 +7,8 @@ using System.ComponentModel.DataAnnotations;
/// are valid and match the required schema.
struct FunctionInputs
{
//[Required]
//public double Tolerance;
[Required]
public double Tolerance;
//public string Exclusions;
}