-
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
Denis Smet
committed
Mar 11, 2024
1 parent
50d44ae
commit 90875eb
Showing
1 changed file
with
44 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,44 @@ | ||
# | ||
# JBZoo Toolbox - Csv-Blueprint. | ||
# | ||
# This file is part of the JBZoo Toolbox project. | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
# @license MIT | ||
# @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
# @see https://github.com/JBZoo/Csv-Blueprint | ||
# | ||
|
||
name: 'CSV Validator' | ||
description: 'Strict and flexible schema-based CSV file validation with the ability to report as GitHub Annotations in your PRs.' | ||
author: 'Denis Smetannikov <[email protected]>' | ||
|
||
branding: | ||
icon: 'file-text' | ||
color: 'green' | ||
|
||
inputs: | ||
csv: | ||
description: 'CSV filepath to validate.' | ||
required: true | ||
schema: | ||
description: 'Schema rule filepath. File can be a Yml or JSON. See examples in the repository.' | ||
required: true | ||
output: | ||
description: 'Report output format. Available options: text, table, github, gitlab, teamcity, junit' | ||
default: github | ||
required: true | ||
|
||
runs: | ||
using: 'docker' | ||
image: 'docker://jbzoo/csv-blueprint' | ||
args: | ||
- validate:csv | ||
- '--csv' | ||
- ${{ inputs.csv }} | ||
- '--schema' | ||
- ${{ inputs.schema }} | ||
- '--output' | ||
- ${{ inputs.mute-errors }} | ||
- '-vvv' |