Skip to content

Commit

Permalink
feat: add tmdb mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
varoOP authored Sep 20, 2023
1 parent 59f9e58 commit 8aa244c
Show file tree
Hide file tree
Showing 9 changed files with 15,207 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/exclude

This file was deleted.

2 changes: 2 additions & 0 deletions .github/exclude-tmdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*test*
*tmdb*
2 changes: 2 additions & 0 deletions .github/exclude-tvdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*test*
*tvdb*
41 changes: 41 additions & 0 deletions .github/schema-tmdb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$id": "https://github.com/varoOP/shinkro-mapping/blob/main/.github/schema-tmdb.json",
"type": "object",
"default": {},
"title": "shinkro tmdb-mal custom mapping scheme",
"required": [
"animeMovies"
],
"properties": {
"animeMovies": {
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"mainTitle",
"tmdbid",
"malid"
],
"properties": {
"mainTitle": {
"type": "string",
"examples": [
"Tokyo Godfathers",
"Ramayana: The Legend of Prince",
"Bakemono no Ko"
]
},
"tmdbid": {
"type": "integer",
"minimum": 0
},
"malid": {
"type": "integer",
"minimum": 1
}
}
}
}
}
}
4 changes: 2 additions & 2 deletions schema.json → .github/schema-tvdb.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$id": "https://github.com/varoOP/shinkro-mapping/blob/main/schema.json",
"$id": "https://github.com/varoOP/shinkro-mapping/blob/main/.github/schema-tvdb.json",
"type": "object",
"default": {},
"title": "shinkro custom mapping schema",
"title": "shinkro tvdb-mal custom mapping schema",
"required": [
"anime"
],
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:
contents: read

jobs:
test:
name: Test
testTVDB:
name: TestTVDB
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -20,7 +20,22 @@ jobs:
- name: json-yaml-validate
uses: GrantBirki/[email protected]
with:
json_schema: "./schema.json"
json_schema: "./.github/schema-tvdb.json"
use_gitignore: false
yaml_as_json: true
exclude_file: "./.github/exclude"
exclude_file: "./.github/exclude-tmdb"

testTMDB:
name: TestTMDB
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: json-yaml-validate
uses: GrantBirki/[email protected]
with:
json_schema: "./.github/schema-tmdb.json"
use_gitignore: false
yaml_as_json: true
exclude_file: "./.github/exclude-tvdb"
Loading

0 comments on commit 8aa244c

Please sign in to comment.