Skip to content

Commit

Permalink
chore: use openapi-generator to generate argocd client sources
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed Jul 13, 2024
1 parent ec7d6f3 commit a020d0e
Show file tree
Hide file tree
Showing 6 changed files with 2,125 additions and 272 deletions.
9 changes: 9 additions & 0 deletions .github/pipeline/prepareCmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

set -ex

release_version=$1

npm run openapi:generate:argocd
cargo bump "${release_version}"
cargo build --release
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
with:
command: clippy
args: -- -D warnings
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.15.0
cache: 'npm'
- name: Install node.js packages
run: npm ci
- name: Generate Argo-CD Client Sources
run: npm run openapi:generate:argocd
- name: Unit and Integration Tests
uses: actions-rs/cargo@v1
env:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,7 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# OpenAPI generator
openapitools.json
src/argo-cd
Loading

0 comments on commit a020d0e

Please sign in to comment.