Skip to content

Commit 81ca206

Browse files
committed
move open-api-validation to ci.yml
1 parent 67bc4f5 commit 81ca206

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,37 @@ 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+
83114
######################################################################################
84115
## Create a tagged github release
85116
##
@@ -93,7 +124,7 @@ jobs:
93124
needs:
94125
- rustfmt
95126
- check-release
96-
secrets: inherit
127+
secrets: inherit
97128
uses: ./.github/workflows/github-release.yml
98129
with:
99130
node_tag: ${{ needs.check-release.outputs.node_tag }}

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,6 @@ 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-
7459
## Disabled
7560
## - this test can take several hours to run
7661
nettest:
@@ -140,7 +125,6 @@ jobs:
140125
runs-on: ubuntu-latest
141126
if: always()
142127
needs:
143-
- open-api-validation
144128
- core-contracts-clarinet-test
145129
steps:
146130
- name: Check Tests Status

0 commit comments

Comments
 (0)