Skip to content

Commit

Permalink
chore(ci): Add names to CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jul 12, 2024
1 parent d783f2a commit 1a7e5f6
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Deploy API

on:
workflow_dispatch:
push:
branches:
- main
paths: ['apps/api/**', '.github/workflows/deploy-api.yaml', 'package.json']
paths: ['apps/api/**', '.github/workflows/deploy-api.yml', 'package.json']

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy-platform.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Deploy Platform

on:
workflow_dispatch:
push:
Expand All @@ -6,7 +8,7 @@ on:
paths:
[
'apps/platform/**',
'.github/workflows/deploy-platform.yaml',
'.github/workflows/deploy-platform.yml',
'package.json'
]

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Deploy Web

on:
workflow_dispatch:
push:
branches:
- main
paths: ['apps/web/**', '.github/workflows/deploy-web.yaml', 'package.json']
paths: ['apps/web/**', '.github/workflows/deploy-web.yml', 'package.json']

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/validate-api-client.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Validate API Client

on:
push:
branches:
- '!develop'
- '!main'
paths:
['packages/api-client/**', '.github/workflows/validate-api-client.yaml']
['packages/api-client/**', '.github/workflows/validate-api-client.yml']
pull_request:
paths:
['packages/api-client/**', '.github/workflows/validate-api-client.yaml']
['packages/api-client/**', '.github/workflows/validate-api-client.yml']

jobs:
validate:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/validate-api.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Validate API

on:
push:
branches:
- '!develop'
- '!main'
paths: ['apps/api/**']
paths: ['apps/api/**', '.github/workflows/validate-api.yml']
pull_request:
paths: ['apps/api/**']
paths: ['apps/api/**', '.github/workflows/validate-api.yml']

jobs:
validate:
Expand Down Expand Up @@ -36,7 +38,7 @@ jobs:
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/validate-web.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Validate Web

on:
push:
branches:
Expand All @@ -6,15 +8,15 @@ on:
paths:
[
'apps/web/**',
'.github/workflows/validate-web.yaml',
'.github/workflows/deploy-web.yaml'
'.github/workflows/validate-web.yml',
'.github/workflows/deploy-web.yml'
]
pull_request:
paths:
[
'apps/web/**',
'.github/workflows/deploy-web.yaml',
'.github/workflows/validate-web.yaml'
'.github/workflows/deploy-web.yml',
'.github/workflows/validate-web.yml'
]

jobs:
Expand Down

0 comments on commit 1a7e5f6

Please sign in to comment.