Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnnn
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
fenollp committed Nov 9, 2022
1 parent c34414e commit 133b617
Showing 2 changed files with 40 additions and 20 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/suite.sh
Original file line number Diff line number Diff line change
@@ -121,9 +121,11 @@ cat <<EOF
- name: "$gen"
run: |
set -x
touch _
while read -r file; do
echo "\$file"
go run ./cmd/validate $args "\$file" || (echo "\$file" >_)
go run ./cmd/validate $args "\$file" || echo "\$file" >_
done < <($gen)
git add _
@@ -138,7 +140,7 @@ done

cat <<EOF
EO_
git --no-pager diff
git --no-pager diff --exit-code
EOF

54 changes: 36 additions & 18 deletions .github/workflows/suite.yml
Original file line number Diff line number Diff line change
@@ -85,17 +85,19 @@ jobs:
- name: "ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/*.json OAI-OpenAPI-Specification-157a4c8/examples/v2.0/json/petstore-separate/spec/swagger.json"
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 < <(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 _
- name: Compare with expected results
run: |
cat >_ <<EO_
EO_
git --no-pager diff
git --no-pager diff --exit-code
suite_02:
env:
@@ -167,17 +169,19 @@ jobs:
- name: "ls OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/*.yaml OAI-OpenAPI-Specification-157a4c8/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml"
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 < <(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 _
- name: Compare with expected results
run: |
cat >_ <<EO_
EO_
git --no-pager diff
git --no-pager diff --exit-code
suite_03:
env:
@@ -249,17 +253,19 @@ jobs:
- name: "find OAI-OpenAPI-Specification-157a4c8/examples/v3.0 -type f | sort"
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 OAI-OpenAPI-Specification-157a4c8/examples/v3.0 -type f | sort)
git add _
- name: Compare with expected results
run: |
cat >_ <<EO_
EO_
git --no-pager diff
git --no-pager diff --exit-code
suite_04:
env:
@@ -331,9 +337,11 @@ jobs:
- name: "find OAI-OpenAPI-Specification-157a4c8/examples/v3.1 -type f | sort"
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 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

0 comments on commit 133b617

Please sign in to comment.