diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 1f7621defe93..26beb0c8be96 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -69,7 +69,7 @@ jobs: - name: generate schema run: make migrate gen-build - name: generate API clients - run: make gen-client-go gen-client-rust + run: make gen-clients - name: ensure schema is up-to-date run: git diff --exit-code -- schema.yml blueprints/schema.json packages/client-go packages/client-rust test-migrations: diff --git a/.vscode/settings.json b/.vscode/settings.json index 2b5db327901f..9676ef0c1c4f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -57,5 +57,11 @@ "go.testEnvVars": { "WORKSPACE_DIR": "${workspaceFolder}" }, - "github-actions.workflows.pinned.workflows": [".github/workflows/ci-main.yml"] + "github-actions.workflows.pinned.workflows": [".github/workflows/ci-main.yml"], + "search.exclude": { + "**/node_modules": true, + "**/bower_components": true, + "**/*.code-search": true, + "packages/client-*": true, + } } diff --git a/Makefile b/Makefile index b42a825c0cdd..f9b1d8955a61 100644 --- a/Makefile +++ b/Makefile @@ -236,11 +236,15 @@ gen-client-py: gen-clean-py ## Build and install the authentik API for Python cp ${PWD}/schema.yml ${PWD}/${GEN_API_PY} make -C ${PWD}/${GEN_API_PY} build version=${NPM_VERSION} +_gen-clients: gen-client-go gen-client-rust gen-client-ts +gen-clients: ## Build and install API clients used by authentik + $(MAKE) _gen-clients -j + +gen: gen-build gen-clients ## Build and install API schema and clients used by authentik + gen-dev-config: ## Generate a local development config file $(UV) run scripts/generate_config.py -gen: gen-build gen-client-go gen-client-rust gen-client-ts - ######################### ## Node.js #########################