Skip to content

Commit

Permalink
more file globbing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Mar 7, 2024
1 parent 5730338 commit ba8b8a5
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 94 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
global_any_modified: ${{ steps.changed-files-yaml.outputs.global_any_modified }}
global_all_modified_files: ${{ steps.changed-files-yaml.outputs.global_all_modified_files }}

staging_area_all_modified_files: ${{ steps.changed-files-yaml.outputs.staging_area_all_modified_files }}
staging_area_any_modified: ${{ steps.changed-files-yaml.outputs.staging_area_any_modified }}
staging_area_all_modified_files: ${{ steps.changed-files-yaml.outputs.packages_all_modified_files }}
staging_area_any_modified: ${{ steps.changed-files-yaml.outputs.packages_any_modified }}

tests_all_modified_files: ${{ steps.changed-files-yaml.outputs.tests_all_modified_files }}
tests_any_modified: ${{ steps.changed-files-yaml.outputs.tests_any_modified }}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
files_yaml: |
global:
- '**'
staging_area:
packages:
- src/PackageRegistryService/StagingArea/**
tests:
- tests/**
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
echo "trigger-build-and-test-projects=${{ steps.changed-files-yaml.outputs.tests_any_modified == 'true' || steps.changed-files-yaml.outputs.api_any_modified == 'true' || steps.changed-files-yaml.outputs.client_any_modified == 'true' || steps.changed-files-yaml.outputs.index_any_modified == 'true'}}" >> $GITHUB_OUTPUT
echo "trigger-release-index=${{github.event_name == 'push' && steps.decide-on-dry-run.outputs.dry_run == 'false' && contains(steps.changed-files-yaml.outputs.index_all_modified_files, 'RELEASE_NOTES.md')}}" >> $GITHUB_OUTPUT
echo "trigger-release-client=${{github.event_name == 'push' && steps.decide-on-dry-run.outputs.dry_run == 'false' && contains(steps.changed-files-yaml.outputs.client_all_modified_files, 'RELEASE_NOTES.md')}}" >> $GITHUB_OUTPUT
echo "trigger-test-staging-area=${{steps.changed-files-yaml.outputs.staging_area_any_modified == 'true' && steps.decide-on-dry-run.outputs.dry_run == 'false'}}" >> $GITHUB_OUTPUT
echo "trigger-test-staging-area=${{steps.changed-files-yaml.outputs.packages_any_modified == 'true' && steps.decide-on-dry-run.outputs.dry_run == 'false'}}" >> $GITHUB_OUTPUT
echo "$GITHUB_OUTPUT"
- name: list outputs
Expand All @@ -100,8 +100,8 @@ jobs:
echo "- any: ${{ steps.changed-files-yaml.outputs.global_any_modified }}"
echo "- all: ${{ steps.changed-files-yaml.outputs.global_all_modified_files }}"
echo "staging area:"
echo "- any: ${{ steps.changed-files-yaml.outputs.staging_area_any_modified }}"
echo "- all: ${{ steps.changed-files-yaml.outputs.staging_area_all_modified_files }}"
echo "- any: ${{ steps.changed-files-yaml.outputs.packages_any_modified }}"
echo "- all: ${{ steps.changed-files-yaml.outputs.packages_all_modified_files }}"
echo "tests:"
echo "- any: ${{ steps.changed-files-yaml.outputs.tests_any_modified }}"
echo "- all: ${{ steps.changed-files-yaml.outputs.tests_all_modified_files }}"
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/publish-pending-packages.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/update-docker-image.yml

This file was deleted.

47 changes: 47 additions & 0 deletions src/PackageRegistryService/Data/arc-validate-package-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,53 @@
"ReleaseNotes": "add authors and tags for further testing"
}
},
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
"LastUpdated": "2024-03-07T16:02:19+01:00",
"ContentHash": "618DC951075C63B2FDCE12450A584190",
"Metadata": {
"Name": "test",
"Summary": "this package is here for testing purposes only.",
"Description": "this package is here for testing purposes only.",
"MajorVersion": 3,
"MinorVersion": 0,
"PatchVersion": 0,
"Publish": true,
"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",
"TermSourceREF": "",
"TermAccessionNumber": ""
},
{
"Name": "my-package",
"TermSourceREF": "",
"TermAccessionNumber": ""
},
{
"Name": "thing",
"TermSourceREF": "",
"TermAccessionNumber": ""
}
],
"ReleaseNotes": "add authors and tags for further testing"
}
},
{
"RepoPath": "src/PackageRegistryService/StagingArea/test/[email protected]",
"FileName": "[email protected]",
Expand Down
43 changes: 43 additions & 0 deletions src/PackageRegistryService/StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
(*
---
Name: test
MajorVersion: 3
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: [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: "add authors and tags for further testing"
---
*)

// this file is intended for testing purposes only.
printfn "If you can read this in your console, you successfully executed test package v3.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"
)

0 comments on commit ba8b8a5

Please sign in to comment.