-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (98 loc) · 3.23 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#
# 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: Demo
on:
push:
branches:
- 'master'
release:
types: [ published ]
env:
COLUMNS: 120
TERM_PROGRAM: Hyper
jobs:
reports:
name: All Report Types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Valid CSV file
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/demo.csv
schema: tests/schemas/demo_valid.yml
- name: Invalid CSV file - Text
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
report: text
continue-on-error: true
- name: Invalid CSV file - Table
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
report: table
continue-on-error: true
- name: Invalid CSV file - GitHub Annotations
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
continue-on-error: true
- name: Invalid CSV file - TeamCity
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
report: teamcity
continue-on-error: true
- name: Invalid CSV file - Gitlab
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
report: gitlab
continue-on-error: true
- name: Invalid CSV file - JUnit
uses: jbzoo/csv-blueprint@master
with:
csv: tests/fixtures/batch/*.csv
schema: tests/schemas/demo_invalid.yml
report: junit
continue-on-error: true
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Pull Docker Image
run: docker pull jbzoo/csv-blueprint
- name: 👍 Valid CSV file
run: |
docker run \
-v `pwd`:/parent-host \
--rm jbzoo/csv-blueprint \
validate:csv \
--csv=/parent-host/tests/fixtures/batch/*.csv \
--schema=/parent-host/tests/schemas/demo_valid.yml \
--ansi
- name: 👎 Invalid CSV file
run: |
! docker run \
-v `pwd`:/parent-host \
--rm jbzoo/csv-blueprint \
validate:csv \
--csv=/parent-host/tests/fixtures/batch/*.csv \
--schema=/parent-host/tests/schemas/demo_invalid.yml \
--ansi