Skip to content

Commit

Permalink
chore(ci): Add internal package dependencies to existing workflows (#592
Browse files Browse the repository at this point in the history
)
  • Loading branch information
muntaxir4 authored Dec 19, 2024
1 parent 83a1851 commit a9fc39e
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 22 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/validate-api-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/validate-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/validate-platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -58,4 +60,4 @@ jobs:
- name: Lint
run: |
pnpm run lint:platform
pnpm run lint:platform
4 changes: 2 additions & 2 deletions .github/workflows/validate-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate-secret-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a9fc39e

Please sign in to comment.