Skip to content

Commit

Permalink
Update githib ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeyash07 committed Nov 11, 2024
1 parent d3236f7 commit 43a31e0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
APP_TITLE: ${{ vars.APP_TITLE }}
APP_GRAPHQL_CODEGEN_ENDPOINT: ${{ vars.APP_GRAPHQL_CODEGEN_ENDPOINT }}
APP_GRAPHQL_ENDPOINT: ${{ vars.APP_GRAPHQL_ENDPOINT }}
GITHUB_WORKFLOW: true

jobs:
Expand All @@ -17,8 +18,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down Expand Up @@ -56,7 +55,7 @@ jobs:
run: pnpm install

- name: Run knip
run: pnpm lint:unused
run: pnpm generate:type && pnpm lint:unused
lint-js:
name: Lint JS
environment: 'test'
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
2 changes: 1 addition & 1 deletion backend
Submodule backend updated 48 files
+68 −10 .github/workflows/ci.yml
+75 −0 .github/workflows/helm-publish.yml
+3 −0 .gitignore
+1 −1 .python-version
+3 −2 Dockerfile
+1 −1 chatbotcore/custom_embeddings.py
+0 −1 chatbotcore/database.py
+1 −1 chatbotcore/doc_loaders.py
+9 −8 chatbotcore/llm.py
+0 −0 chatbotcore/utils.py
+0 −0 common/utils.py
+9 −0 content/enums.py
+1 −1 content/migrations/0002_alter_content_document_type.py
+7 −3 content/models.py
+17 −0 content/queries.py
+6 −0 content/serializers.py
+38 −0 content/tasks.py
+24 −0 content/types.py
+18 −0 content/views.py
+69 −28 docker-compose.yml
+4 −3 gh-docker-compose.yml
+7 −0 helm/Chart.yaml
+34 −0 helm/templates/_helpers.tpl
+57 −0 helm/templates/api/deployment.yaml
+26 −0 helm/templates/api/ingress.yaml
+24 −0 helm/templates/api/service.yaml
+46 −0 helm/templates/config/configmap.yaml
+21 −0 helm/templates/config/secret.yaml
+41 −0 helm/templates/redis/deployment.yaml
+24 −0 helm/templates/redis/service.yaml
+57 −0 helm/templates/streamlit/deployment.yaml
+26 −0 helm/templates/streamlit/ingress.yaml
+24 −0 helm/templates/streamlit/service.yaml
+48 −0 helm/templates/worker/deployment.yaml
+38 −0 helm/values-test.yaml
+109 −0 helm/values.yaml
+3 −0 main/__init__.py
+13 −0 main/celery.py
+2 −0 main/graphql/enums.py
+2 −3 main/graphql/schema.py
+35 −2 main/settings.py
+2 −12 main/urls.py
+259 −9 poetry.lock
+5 −2 pyproject.toml
+7 −0 scripts/run_prod.sh
+3 −0 scripts/run_worker.sh
+1 −19 user/queries.py
+16 −6 user/types.py
2 changes: 1 addition & 1 deletion env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import {

export default defineConfig({
COMPOSE_FILE: Schema.string.optional(),
APP_TITLE: Schema.string(),
APP_TITLE: Schema.string.optional(),
});
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"preview": "vite preview",
"test": "vitest",
"coverage": "vitest run --coverage",
"initialize": "mkdir -p generated/types && yes n | cp -i type.template.tsx generated/types/graphql 2>/dev/null",
"prelint": "pnpm initialize",
"pretypecheck": "pnpm initialize",
"prebuild": "pnpm initialize",
"prestart": "pnpm initialize",
"get-hostname": "ip route | awk '/default/ { print $3 }'",
"replace-localhost": "awk \"{sub(/localhost/, \\\"$(pnpm -s get-hostname)\\\")}1\"",
"generate:type": "APP_GRAPHQL_CODEGEN_ENDPOINT=$(echo $APP_GRAPHQL_CODEGEN_ENDPOINT | pnpm -s replace-localhost) graphql-codegen --require dotenv/config --config codegen.ts",
Expand Down
16 changes: 16 additions & 0 deletions type.template.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
Both lint and build steps fail if `generated/type.tsx` is missing
We generally genereate this file using graphql-codegen but graphql-codegen
cannot always be used.
In such cases, just copy this mock type.tsx to ensure that lint and build
steps pass.
NOTE: typecheck step still fails.
*/

export type Query = {
__typename?: 'Query';
};

export type Mutation = {
__typename?: 'Mutation';
};

0 comments on commit 43a31e0

Please sign in to comment.