Skip to content

Commit

Permalink
Merge branch 'nextflow-io:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehmann-Fabian authored Jul 22, 2024
2 parents 69a432b + fc42411 commit 1513f3a
Show file tree
Hide file tree
Showing 4 changed files with 1,637 additions and 49 deletions.
45 changes: 45 additions & 0 deletions .github/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/nextflow-io/plugins/blob/main/schema.json",
"type": "array",
"items": {
"title": "plugin",
"required": ["id", "releases"],
"type": "object",
"properties": {
"id": {
"type": "string"
},
"releases": {
"type": "array",
"items": {
"title": "release",
"required": ["date", "requires", "sha512sum", "url", "version"],
"type": "object",
"properties": {
"version": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"pattern": "^https?://.+\\.zip$"
},
"date": {
"type": "string",
"format": "date-time"
},
"sha512sum": {
"type": "string",
"minLength": 128,
"maxLength": 128
},
"requires": {
"type": "string"
}
}
}
}
}
}
}
15 changes: 15 additions & 0 deletions .github/workflows/validate-plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Validate plugins.json
on:
push:
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate JSON file against schema
uses: cardinalby/schema-validator-action@v3
with:
file: plugins.json
schema: .github/schema.json
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
Loading

0 comments on commit 1513f3a

Please sign in to comment.