Skip to content

Commit a980bc2

Browse files
committed
gnnn
Signed-off-by: Pierre Fenoll <[email protected]>
1 parent 2dc6be0 commit a980bc2

File tree

2 files changed

+40
-20
lines changed

2 files changed

+40
-20
lines changed

.github/workflows/suite.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ cat <<EOF
121121
122122
- name: "$gen"
123123
run: |
124+
set -x
125+
touch _
124126
while read -r file; do
125127
echo "\$file"
126-
go run ./cmd/validate $args "\$file" || (echo "\$file" >_)
128+
go run ./cmd/validate $args "\$file" || echo "\$file" >_
127129
done < <($gen)
128130
git add _
129131
@@ -138,7 +140,7 @@ done
138140

139141
cat <<EOF
140142
EO_
141-
git --no-pager diff
143+
git --no-pager diff --exit-code
142144
143145
EOF
144146

.github/workflows/suite.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,19 @@ jobs:
8585
8686
- name: "ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/*.json OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/petstore-separate/spec/swagger.json"
8787
run: |
88+
set -x
89+
touch _
8890
while read -r file; do
8991
echo "$file"
90-
go run ./cmd/validate "$file" || (echo "$file" >_)
92+
go run ./cmd/validate "$file" || echo "$file" >_
9193
done < <(ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/*.json OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/petstore-separate/spec/swagger.json)
9294
git add _
9395
9496
- name: Compare with expected results
9597
run: |
9698
cat >_ <<EO_
9799
EO_
98-
git --no-pager diff
100+
git --no-pager diff --exit-code
99101
100102
suite_02:
101103
env:
@@ -167,17 +169,19 @@ jobs:
167169
168170
- name: "ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/*.yaml OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml"
169171
run: |
172+
set -x
173+
touch _
170174
while read -r file; do
171175
echo "$file"
172-
go run ./cmd/validate "$file" || (echo "$file" >_)
176+
go run ./cmd/validate "$file" || echo "$file" >_
173177
done < <(ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/*.yaml OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml)
174178
git add _
175179
176180
- name: Compare with expected results
177181
run: |
178182
cat >_ <<EO_
179183
EO_
180-
git --no-pager diff
184+
git --no-pager diff --exit-code
181185
182186
suite_03:
183187
env:
@@ -249,17 +253,19 @@ jobs:
249253
250254
- name: "find OAI-OpenAPI-Specification-157a4c8/examples/v3.0 -type f | sort"
251255
run: |
256+
set -x
257+
touch _
252258
while read -r file; do
253259
echo "$file"
254-
go run ./cmd/validate "$file" || (echo "$file" >_)
260+
go run ./cmd/validate "$file" || echo "$file" >_
255261
done < <(find OAI-OpenAPI-Specification-157a4c8/examples/v3.0 -type f | sort)
256262
git add _
257263
258264
- name: Compare with expected results
259265
run: |
260266
cat >_ <<EO_
261267
EO_
262-
git --no-pager diff
268+
git --no-pager diff --exit-code
263269
264270
suite_04:
265271
env:
@@ -331,9 +337,11 @@ jobs:
331337
332338
- name: "find OAI-OpenAPI-Specification-157a4c8/examples/v3.1 -type f | sort"
333339
run: |
340+
set -x
341+
touch _
334342
while read -r file; do
335343
echo "$file"
336-
go run ./cmd/validate "$file" || (echo "$file" >_)
344+
go run ./cmd/validate "$file" || echo "$file" >_
337345
done < <(find OAI-OpenAPI-Specification-157a4c8/examples/v3.1 -type f | sort)
338346
git add _
339347
@@ -345,7 +353,7 @@ jobs:
345353
OAI-OpenAPI-Specification-157a4c8/examples/v3.1/webhook-example.json
346354
OAI-OpenAPI-Specification-157a4c8/examples/v3.1/webhook-example.yaml
347355
EO_
348-
git --no-pager diff
356+
git --no-pager diff --exit-code
349357
350358
suite_05:
351359
env:
@@ -417,9 +425,11 @@ jobs:
417425
418426
- name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -F network"
419427
run: |
428+
set -x
429+
touch _
420430
while read -r file; do
421431
echo "$file"
422-
go run ./cmd/validate "$file" || (echo "$file" >_)
432+
go run ./cmd/validate "$file" || echo "$file" >_
423433
done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -F network)
424434
git add _
425435
@@ -430,7 +440,7 @@ jobs:
430440
APIs-guru-openapi-directory-2267738/APIs/azure.com/network-firewallPolicy/2019-07-01/swagger.yaml
431441
APIs-guru-openapi-directory-2267738/APIs/azure.com/network-firewallPolicy/2019-08-01/swagger.yaml
432442
EO_
433-
git --no-pager diff
443+
git --no-pager diff --exit-code
434444
435445
suite_06:
436446
env:
@@ -502,9 +512,11 @@ jobs:
502512
503513
- name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -vF network"
504514
run: |
515+
set -x
516+
touch _
505517
while read -r file; do
506518
echo "$file"
507-
go run ./cmd/validate "$file" || (echo "$file" >_)
519+
go run ./cmd/validate "$file" || echo "$file" >_
508520
done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -vF network)
509521
git add _
510522
@@ -672,7 +684,7 @@ jobs:
672684
APIs-guru-openapi-directory-2267738/APIs/azure.com/visualstudio-Csm/2017-11-01-preview/swagger.yaml
673685
APIs-guru-openapi-directory-2267738/APIs/azure.com/visualstudio-Projects/2018-08-01-preview/swagger.yaml
674686
EO_
675-
git --no-pager diff
687+
git --no-pager diff --exit-code
676688
677689
suite_07:
678690
env:
@@ -744,9 +756,11 @@ jobs:
744756
745757
- name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -vF azure.com"
746758
run: |
759+
set -x
760+
touch _
747761
while read -r file; do
748762
echo "$file"
749-
go run ./cmd/validate "$file" || (echo "$file" >_)
763+
go run ./cmd/validate "$file" || echo "$file" >_
750764
done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -vF azure.com)
751765
git add _
752766
@@ -773,7 +787,7 @@ jobs:
773787
APIs-guru-openapi-directory-2267738/APIs/ticketmaster.com/commerce/v2/swagger.yaml
774788
APIs-guru-openapi-directory-2267738/APIs/zalando.com/v1.0/swagger.yaml
775789
EO_
776-
git --no-pager diff
790+
git --no-pager diff --exit-code
777791
778792
suite_08:
779793
env:
@@ -845,9 +859,11 @@ jobs:
845859
846860
- name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -F google"
847861
run: |
862+
set -x
863+
touch _
848864
while read -r file; do
849865
echo "$file"
850-
go run ./cmd/validate --patterns=false "$file" || (echo "$file" >_)
866+
go run ./cmd/validate --patterns=false "$file" || echo "$file" >_
851867
done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -F google)
852868
git add _
853869
@@ -858,7 +874,7 @@ jobs:
858874
APIs-guru-openapi-directory-2267738/APIs/googleapis.com/contentwarehouse/v1/openapi.yaml
859875
APIs-guru-openapi-directory-2267738/APIs/googleapis.com/discovery/v1/openapi.yaml
860876
EO_
861-
git --no-pager diff
877+
git --no-pager diff --exit-code
862878
863879
suite_09:
864880
env:
@@ -930,9 +946,11 @@ jobs:
930946
931947
- name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -vF google"
932948
run: |
949+
set -x
950+
touch _
933951
while read -r file; do
934952
echo "$file"
935-
go run ./cmd/validate --patterns=false "$file" || (echo "$file" >_)
953+
go run ./cmd/validate --patterns=false "$file" || echo "$file" >_
936954
done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -vF google)
937955
git add _
938956
@@ -1538,5 +1556,5 @@ jobs:
15381556
APIs-guru-openapi-directory-2267738/APIs/zoom.us/2.0.0/openapi.yaml
15391557
APIs-guru-openapi-directory-2267738/APIs/zuora.com/2021-08-20/openapi.yaml
15401558
EO_
1541-
git --no-pager diff
1559+
git --no-pager diff --exit-code
15421560

0 commit comments

Comments
 (0)