Skip to content

Commit

Permalink
extract api
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Sep 12, 2023
1 parent d91846c commit 0ae3752
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,21 @@ jobs:

- name: Assemble
run: ./gradlew --no-daemon --parallel clean compileJava compileTestJava compileJmhJava compileIntegrationTestJava compileAcceptanceTestJava compilePropertyTestJava assemble

- name: Extract API
run: |
./gradlew --no-daemon --parallel installDist
mkdir -p .openapidoc/spec
build/install/teku/bin/teku --network=mainnet --ee-endpoint=unsafe-test-stub --Xinterop-enabled=true --rest-api-enabled=true --rest-api-docs-enabled=true 2>&1 > teku_output.log &
TEKU_PID=$!

EXIT_CODE=0
wget --timeout=30 --retry-connrefused --output-document=.openapidoc/spec/teku.json http://localhost:5051/swagger-docs
if [ $? != 0 ]; then
EXIT_CODE=1
fi

kill $TEKU_PID
exit $EXIT_CODE

0 comments on commit 0ae3752

Please sign in to comment.