-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c49736
commit 8cce2d6
Showing
2 changed files
with
45 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,13 @@ | ||
name: Validate YAML | ||
on: [push] | ||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: navikt/yaml-validator@v4 | ||
with: | ||
schema_path: schema.yaml | ||
document_path: campaigns/ | ||
validate_file_extension: 'no' # optional, defaults shown, enum of ['yes', 'no'] | ||
filter_extensions: '.yaml' |
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,32 @@ | ||
--- | ||
deployments: | ||
required: true | ||
type: list | ||
schema: | ||
type: dict | ||
schema: | ||
name: | ||
required: true | ||
type: string | ||
platforms: | ||
required: true | ||
type: list | ||
schema: | ||
name: | ||
required: true | ||
type: string | ||
tsv_format: | ||
require: false | ||
type: boolean | ||
rename_as_ict: | ||
require: false | ||
type: boolean | ||
process_as_ict: | ||
require: false | ||
type: boolean | ||
coords_divisor: | ||
require: false | ||
type: integer | ||
files: | ||
required: true | ||
type: list |