Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dongnguyen9186 committed May 4, 2024
1 parent 040ac6a commit b1b18b4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Validate JSONs

on: [pull_request]

jobs:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_JSONS: ./wallets.json
INPUT_SCHEMA: ./schema.json

10 changes: 10 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "object",
"properties": {
"name":{"type": "string"},
"subname": {"type": "string"},
"tag": {"type": ["string"]},
"logo": {"type": "string"},
"href": {"type": "string"}
}
}

0 comments on commit b1b18b4

Please sign in to comment.