From 133b617bb8322054b6e9179a0abc48d82402206c Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Fri, 28 Oct 2022 18:11:10 +0200 Subject: [PATCH] gnnn Signed-off-by: Pierre Fenoll --- .github/workflows/suite.sh | 6 +++-- .github/workflows/suite.yml | 54 ++++++++++++++++++++++++------------- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/.github/workflows/suite.sh b/.github/workflows/suite.sh index 9c395639e..057e5295f 100755 --- a/.github/workflows/suite.sh +++ b/.github/workflows/suite.sh @@ -121,9 +121,11 @@ cat <_) + go run ./cmd/validate $args "\$file" || echo "\$file" >_ done < <($gen) git add _ @@ -138,7 +140,7 @@ done cat <_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/*.json OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/petstore-separate/spec/swagger.json) git add _ @@ -95,7 +97,7 @@ jobs: run: | cat >_ <_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/*.yaml OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml) git add _ @@ -177,7 +181,7 @@ jobs: run: | cat >_ <_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(find OAI-OpenAPI-Specification-157a4c8/examples/v3.0 -type f | sort) git add _ @@ -259,7 +265,7 @@ jobs: run: | cat >_ <_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(find OAI-OpenAPI-Specification-157a4c8/examples/v3.1 -type f | sort) git add _ @@ -345,7 +353,7 @@ jobs: OAI-OpenAPI-Specification-157a4c8/examples/v3.1/webhook-example.json OAI-OpenAPI-Specification-157a4c8/examples/v3.1/webhook-example.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code suite_05: env: @@ -417,9 +425,11 @@ jobs: - name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -F network" run: | + set -x + touch _ while read -r file; do echo "$file" - go run ./cmd/validate "$file" || (echo "$file" >_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -F network) git add _ @@ -430,7 +440,7 @@ jobs: APIs-guru-openapi-directory-2267738/APIs/azure.com/network-firewallPolicy/2019-07-01/swagger.yaml APIs-guru-openapi-directory-2267738/APIs/azure.com/network-firewallPolicy/2019-08-01/swagger.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code suite_06: env: @@ -502,9 +512,11 @@ jobs: - name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -vF network" run: | + set -x + touch _ while read -r file; do echo "$file" - go run ./cmd/validate "$file" || (echo "$file" >_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -F azure.com | grep -vF network) git add _ @@ -672,7 +684,7 @@ jobs: APIs-guru-openapi-directory-2267738/APIs/azure.com/visualstudio-Csm/2017-11-01-preview/swagger.yaml APIs-guru-openapi-directory-2267738/APIs/azure.com/visualstudio-Projects/2018-08-01-preview/swagger.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code suite_07: env: @@ -744,9 +756,11 @@ jobs: - name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -vF azure.com" run: | + set -x + touch _ while read -r file; do echo "$file" - go run ./cmd/validate "$file" || (echo "$file" >_) + go run ./cmd/validate "$file" || echo "$file" >_ done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name swagger.yaml | sort | grep -vF azure.com) git add _ @@ -773,7 +787,7 @@ jobs: APIs-guru-openapi-directory-2267738/APIs/ticketmaster.com/commerce/v2/swagger.yaml APIs-guru-openapi-directory-2267738/APIs/zalando.com/v1.0/swagger.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code suite_08: env: @@ -845,9 +859,11 @@ jobs: - name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -F google" run: | + set -x + touch _ while read -r file; do echo "$file" - go run ./cmd/validate --patterns=false "$file" || (echo "$file" >_) + go run ./cmd/validate --patterns=false "$file" || echo "$file" >_ done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -F google) git add _ @@ -858,7 +874,7 @@ jobs: APIs-guru-openapi-directory-2267738/APIs/googleapis.com/contentwarehouse/v1/openapi.yaml APIs-guru-openapi-directory-2267738/APIs/googleapis.com/discovery/v1/openapi.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code suite_09: env: @@ -930,9 +946,11 @@ jobs: - name: "find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -vF google" run: | + set -x + touch _ while read -r file; do echo "$file" - go run ./cmd/validate --patterns=false "$file" || (echo "$file" >_) + go run ./cmd/validate --patterns=false "$file" || echo "$file" >_ done < <(find APIs-guru-openapi-directory-2267738/APIs -type f -name openapi.yaml | sort | grep -vF google) git add _ @@ -1538,5 +1556,5 @@ jobs: APIs-guru-openapi-directory-2267738/APIs/zoom.us/2.0.0/openapi.yaml APIs-guru-openapi-directory-2267738/APIs/zuora.com/2021-08-20/openapi.yaml EO_ - git --no-pager diff + git --no-pager diff --exit-code