From 744d729a84ef27acb3de034c347fa21f5e6b76d3 Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Fri, 21 Jun 2024 13:24:48 +0200 Subject: [PATCH] add a test package that uses semver suffixes --- StagingArea/test/test@5.0.0-use+suffixes.fsx | 47 ++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 StagingArea/test/test@5.0.0-use+suffixes.fsx diff --git a/StagingArea/test/test@5.0.0-use+suffixes.fsx b/StagingArea/test/test@5.0.0-use+suffixes.fsx new file mode 100644 index 0000000..5d4f8f0 --- /dev/null +++ b/StagingArea/test/test@5.0.0-use+suffixes.fsx @@ -0,0 +1,47 @@ +let []PACKAGE_METADATA = """(* +--- +Name: test +MajorVersion: 5 +MinorVersion: 0 +PatchVersion: 0 +PreRelease: use +BuildMetadata: suffixes +Publish: true +Summary: this package is here for testing purposes only. +Description: this package is here for testing purposes only. +Authors: + - FullName: John Doe + Email: j@d.com + Affiliation: University of Nowhere + AffiliationLink: https://nowhere.edu + - FullName: Jane Doe + Email: jj@d.com + Affiliation: University of Somewhere + AffiliationLink: https://somewhere.edu +Tags: + - Name: validation + - Name: my-package + - Name: thing +ReleaseNotes: Use ARCExpect v3 +CQCHookEndpoint: https://avpr.nfdi4plants.org +--- +*)""" + +printfn "If you can read this in your console, you successfully executed test package v5.0.0-use+suffixes!" + +#r "nuget: ARCExpect, 3.0.0" + +open ARCExpect +open Expecto +let test_package = + Setup.ValidationPackage( + metadata = Setup.Metadata(PACKAGE_METADATA), + CriticalValidationCases = [ + test "yes" {Expect.equal 1 1 "yes"} + ] + ) + +test_package +|> Execute.ValidationPipeline( + basePath = System.Environment.CurrentDirectory +) \ No newline at end of file