Skip to content

Commit e858b09

Browse files
committed
Revert "move open-api-validation to ci.yml"
This reverts commit 81ca206.
1 parent b02d291 commit e858b09

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -80,37 +80,6 @@ jobs:
8080
with:
8181
tag: ${{ github.ref_name }}
8282

83-
######################################################################################
84-
## Generate and upload openapi html artifact
85-
##
86-
## Runs when:
87-
## - it is a node or signer-only release run
88-
## or any of:
89-
## - this workflow is called manually
90-
## - PR is opened
91-
## - PR added to merge queue
92-
open-api-validation:
93-
if: |
94-
needs.check-release.outputs.is_node_release == 'true' ||
95-
needs.check-release.outputs.is_signer_release == 'true' ||
96-
github.event_name == 'workflow_dispatch' ||
97-
github.event_name == 'pull_request' ||
98-
github.event_name == 'merge_group'
99-
name: OpenAPI Validation
100-
needs:
101-
- rustfmt
102-
- check-release
103-
runs-on: ubuntu-latest
104-
steps:
105-
- name: Generate OpenAPI documentation
106-
uses: stacks-network/actions/openapi@main
107-
with:
108-
input: "./docs/rpc/openapi.yaml"
109-
output: "./openapi-docs.html"
110-
config: "./docs/rpc/redocly.yaml"
111-
validate: "true"
112-
redocly-version: "1.34"
113-
11483
######################################################################################
11584
## Create a tagged github release
11685
##
@@ -124,7 +93,7 @@ jobs:
12493
needs:
12594
- rustfmt
12695
- check-release
127-
secrets: inherit
96+
secrets: inherit
12897
uses: ./.github/workflows/github-release.yml
12998
with:
13099
node_tag: ${{ needs.check-release.outputs.node_tag }}

.github/workflows/stacks-core-tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ jobs:
5656
with:
5757
test-name: ${{ matrix.test-name }}
5858

59+
## Generate and upload openapi html artifact
60+
open-api-validation:
61+
name: OpenAPI Validation
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Generate OpenAPI documentation
65+
id: openapi
66+
uses: stacks-network/actions/openapi@main
67+
with:
68+
input: "./docs/rpc/openapi.yaml"
69+
output: "./openapi-docs.html"
70+
config: "./docs/rpc/redocly.yaml"
71+
validate: "true"
72+
redocly-version: "1.34"
73+
5974
## Disabled
6075
## - this test can take several hours to run
6176
nettest:
@@ -125,6 +140,7 @@ jobs:
125140
runs-on: ubuntu-latest
126141
if: always()
127142
needs:
143+
- open-api-validation
128144
- core-contracts-clarinet-test
129145
steps:
130146
- name: Check Tests Status

0 commit comments

Comments
 (0)