From a9fc39ee4ae1f2b3869c1bc8addfa20958049022 Mon Sep 17 00:00:00 2001 From: Muntasir Mallik <73852736+muntaxir4@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:25:23 +0530 Subject: [PATCH] chore(ci): Add internal package dependencies to existing workflows (#592) --- .github/workflows/validate-api-client.yaml | 12 ++++++++++-- .github/workflows/validate-api.yaml | 4 ++-- .github/workflows/validate-cli.yaml | 12 ++++++++---- .github/workflows/validate-platform.yaml | 12 +++++++----- .github/workflows/validate-schema.yaml | 4 ++-- .github/workflows/validate-secret-scan.yaml | 4 ++-- .github/workflows/validate-web.yaml | 8 ++++---- package.json | 2 +- 8 files changed, 36 insertions(+), 22 deletions(-) diff --git a/.github/workflows/validate-api-client.yaml b/.github/workflows/validate-api-client.yaml index 4d336299..6c1f229e 100644 --- a/.github/workflows/validate-api-client.yaml +++ b/.github/workflows/validate-api-client.yaml @@ -6,10 +6,18 @@ on: - '!develop' - '!main' paths: - ['packages/api-client/**', '.github/workflows/validate-api-client.yml'] + [ + 'packages/schema/**', + 'packages/api-client/**', + '.github/workflows/validate-api-client.yaml' + ] pull_request: paths: - ['packages/api-client/**', '.github/workflows/validate-api-client.yml'] + [ + 'packages/schema/**', + 'packages/api-client/**', + '.github/workflows/validate-api-client.yaml' + ] jobs: validate: diff --git a/.github/workflows/validate-api.yaml b/.github/workflows/validate-api.yaml index ae187a18..8243e60f 100644 --- a/.github/workflows/validate-api.yaml +++ b/.github/workflows/validate-api.yaml @@ -5,9 +5,9 @@ on: branches: - '!develop' - '!main' - paths: ['apps/api/**', '.github/workflows/validate-api.yml'] + paths: ['apps/api/**', '.github/workflows/validate-api.yaml'] pull_request: - paths: ['apps/api/**', '.github/workflows/validate-api.yml'] + paths: ['apps/api/**', '.github/workflows/validate-api.yaml'] jobs: validate: diff --git a/.github/workflows/validate-cli.yaml b/.github/workflows/validate-cli.yaml index 806f3901..7666d987 100644 --- a/.github/workflows/validate-cli.yaml +++ b/.github/workflows/validate-cli.yaml @@ -7,16 +7,20 @@ on: - '!main' paths: [ + 'packages/api-client/**', + 'packages/secret-scan/**', 'apps/cli/**', - '.github/workflows/validate-cli.yml', - '.github/workflows/deploy-cli.yml' + '.github/workflows/validate-cli.yaml', + '.github/workflows/deploy-cli.yaml' ] pull_request: paths: [ + 'packages/api-client/**', + 'packages/secret-scan/**', 'apps/cli/**', - '.github/workflows/deploy-cli.yml', - '.github/workflows/validate-cli.yml' + '.github/workflows/deploy-cli.yaml', + '.github/workflows/validate-cli.yaml' ] jobs: diff --git a/.github/workflows/validate-platform.yaml b/.github/workflows/validate-platform.yaml index c29b2b67..01e4e3e3 100644 --- a/.github/workflows/validate-platform.yaml +++ b/.github/workflows/validate-platform.yaml @@ -7,16 +7,18 @@ on: - '!main' paths: [ + 'packages/api-client/**', 'apps/platform/**', - '.github/workflows/validate-platform.yml', - '.github/workflows/deploy-platform.yml' + '.github/workflows/validate-platform.yaml', + '.github/workflows/deploy-platform.yaml' ] pull_request: paths: [ + 'packages/api-client/**', 'apps/platform/**', - '.github/workflows/deploy-platform.yml', - '.github/workflows/validate-platform.yml' + '.github/workflows/deploy-platform.yaml', + '.github/workflows/validate-platform.yaml' ] jobs: @@ -58,4 +60,4 @@ jobs: - name: Lint run: | - pnpm run lint:platform \ No newline at end of file + pnpm run lint:platform diff --git a/.github/workflows/validate-schema.yaml b/.github/workflows/validate-schema.yaml index e46b437c..9719e7e3 100644 --- a/.github/workflows/validate-schema.yaml +++ b/.github/workflows/validate-schema.yaml @@ -5,9 +5,9 @@ on: branches: - '!develop' - '!main' - paths: ['packages/schema/**', '.github/workflows/validate-schema.yml'] + paths: ['packages/schema/**', '.github/workflows/validate-schema.yaml'] pull_request: - paths: ['packages/schema/**', '.github/workflows/validate-schema.yml'] + paths: ['packages/schema/**', '.github/workflows/validate-schema.yaml'] jobs: validate: diff --git a/.github/workflows/validate-secret-scan.yaml b/.github/workflows/validate-secret-scan.yaml index dacc5ce0..83fea21d 100644 --- a/.github/workflows/validate-secret-scan.yaml +++ b/.github/workflows/validate-secret-scan.yaml @@ -6,10 +6,10 @@ on: - '!develop' - '!main' paths: - ['packages/secret-scan/**', '.github/workflows/validate-secret-scan.yml'] + ['packages/secret-scan/**', '.github/workflows/validate-secret-scan.yaml'] pull_request: paths: - ['packages/secret-scan/**', '.github/workflows/validate-secret-scan.yml'] + ['packages/secret-scan/**', '.github/workflows/validate-secret-scan.yaml'] jobs: validate: diff --git a/.github/workflows/validate-web.yaml b/.github/workflows/validate-web.yaml index f396b437..73ab67ff 100644 --- a/.github/workflows/validate-web.yaml +++ b/.github/workflows/validate-web.yaml @@ -8,15 +8,15 @@ on: paths: [ 'apps/web/**', - '.github/workflows/validate-web.yml', - '.github/workflows/deploy-web.yml' + '.github/workflows/validate-web.yaml', + '.github/workflows/deploy-web.yaml' ] pull_request: paths: [ 'apps/web/**', - '.github/workflows/deploy-web.yml', - '.github/workflows/validate-web.yml' + '.github/workflows/deploy-web.yaml', + '.github/workflows/validate-web.yaml' ] jobs: diff --git a/package.json b/package.json index 3608c233..f0926c15 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "lint:platform": "turbo run lint --filter=platform", "lint:cli": "turbo run lint --filter=cli", "lint:api-client": "turbo run lint --filter=@keyshade/api-client", - "lint:secret-scan": "turbo run lint --filter=secret-scan", + "lint:secret-scan": "turbo run lint --filter=@keyshade/secret-scan", "lint:schema": "turbo run lint --filter=@keyshade/schema", "build": "turbo run build", "build:api": "pnpm db:generate-types && turbo run build --filter=api",