Skip to content

Commit a020d0e

Browse files
committed
chore: use openapi-generator to generate argocd client sources
1 parent ec7d6f3 commit a020d0e

File tree

6 files changed

+2125
-272
lines changed

6 files changed

+2125
-272
lines changed

.github/pipeline/prepareCmd.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
3+
set -ex
4+
5+
release_version=$1
6+
7+
npm run openapi:generate:argocd
8+
cargo bump "${release_version}"
9+
cargo build --release

.github/workflows/build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
with:
4343
command: clippy
4444
args: -- -D warnings
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: 20.15.0
49+
cache: 'npm'
50+
- name: Install node.js packages
51+
run: npm ci
52+
- name: Generate Argo-CD Client Sources
53+
run: npm run openapi:generate:argocd
4554
- name: Unit and Integration Tests
4655
uses: actions-rs/cargo@v1
4756
env:

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@ dist
221221
.yarn/build-state.yml
222222
.yarn/install-state.gz
223223
.pnp.*
224+
225+
# OpenAPI generator
226+
openapitools.json
227+
src/argo-cd

0 commit comments

Comments
 (0)