-
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 support for in-package frontmatter bindings:
- Enables re-use of the frontmatter inside the package code - Add tests for frontmatter extraction and parsing - Add test@v4.0.0 containing this frontmatter type
- Loading branch information
Showing
17 changed files
with
664 additions
and
220 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
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,51 @@ | ||
let [<Literal>]PACKAGE_METADATA = """(* | ||
--- | ||
Name: test | ||
MajorVersion: 4 | ||
MinorVersion: 0 | ||
PatchVersion: 0 | ||
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 in-package metadata" | ||
--- | ||
*)""" | ||
|
||
#r "nuget: ARCExpect, 1.0.1" | ||
#r "nuget: AVPRIndex" | ||
|
||
open AVPRIndex.Domain | ||
open AVPRIndex.Frontmatter | ||
|
||
let metadata = ValidationPackageMetadata.extractFromString(PACKAGE_METADATA) | ||
|
||
// this file is intended for testing purposes only. | ||
printfn "If you can read this in your console, you successfully executed test package v4.0.0!" | ||
|
||
#r "nuget: ARCExpect, 1.0.1" | ||
|
||
open ARCExpect | ||
open Expecto | ||
|
||
let validationCases = testList "test" [ | ||
test "yes" {Expect.equal 1 1 "yes"} | ||
] | ||
|
||
validationCases | ||
|> Execute.ValidationPipeline( | ||
basePath = System.Environment.CurrentDirectory, | ||
packageName = "test" | ||
) |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.