Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrRosenblatt/validate json action #31

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ typings/

# IDE
.vscode
.idea/
2 changes: 1 addition & 1 deletion __tests__/json-file-reader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Process a JSON file', () => {
});
});

test('should throw an error when procesing invalid JSON file', async () => {
test('should throw an error when processing invalid JSON file', async () => {
const invalidJsonFile = `${mocks_dir}/tested-data/invalid_by_format.json`;

const task = getJson(invalidJsonFile);
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Validate JSON'
name: 'Validate JSON with Glob'
description: 'GitHub Action: Validate JSON'
author: 'Or Rosenblatt'
inputs:
Expand All @@ -7,11 +7,11 @@ inputs:
required: true
default: './schema.json'
json:
description: 'One or more relative file paths under the repository (seperated by comma) of the JSON files to validate with the schema provided.'
description: 'One or more relative file paths under the repository (separated by comma) of the JSON files to validate with the schema provided.'
required: true
outputs:
invalid:
description: 'One or more of relative file paths of the invalid JSON files, found in the repository (seperated by comma).'
description: 'One or more of relative file paths of the invalid JSON files, found in the repository (separated by comma).'
runs:
using: 'node12'
main: 'lib/main.js'
Expand Down
Loading