-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test package that uses semver suffixes
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
let [<Literal>]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: [email protected] | ||
Affiliation: University of Nowhere | ||
AffiliationLink: https://nowhere.edu | ||
- FullName: Jane Doe | ||
Email: [email protected] | ||
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 | ||
) |