From 1a7e5f6c2b4e4a5aced5955a2a394f0540776cb1 Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Fri, 12 Jul 2024 13:16:23 +0530 Subject: [PATCH] chore(ci): Add names to CI files --- .github/workflows/deploy-api.yml | 4 +++- .github/workflows/deploy-platform.yml | 4 +++- .github/workflows/deploy-web.yml | 4 +++- .github/workflows/validate-api-client.yaml | 6 ++++-- .github/workflows/validate-api.yaml | 8 +++++--- .github/workflows/validate-web.yaml | 10 ++++++---- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 47251337..45ce9a95 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -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: diff --git a/.github/workflows/deploy-platform.yml b/.github/workflows/deploy-platform.yml index f471e4e0..74f293bf 100644 --- a/.github/workflows/deploy-platform.yml +++ b/.github/workflows/deploy-platform.yml @@ -1,3 +1,5 @@ +name: Deploy Platform + on: workflow_dispatch: push: @@ -6,7 +8,7 @@ on: paths: [ 'apps/platform/**', - '.github/workflows/deploy-platform.yaml', + '.github/workflows/deploy-platform.yml', 'package.json' ] diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.yml index aa62aa04..6af7f7f8 100644 --- a/.github/workflows/deploy-web.yml +++ b/.github/workflows/deploy-web.yml @@ -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: diff --git a/.github/workflows/validate-api-client.yaml b/.github/workflows/validate-api-client.yaml index 2a323c80..a5246a5a 100644 --- a/.github/workflows/validate-api-client.yaml +++ b/.github/workflows/validate-api-client.yaml @@ -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: diff --git a/.github/workflows/validate-api.yaml b/.github/workflows/validate-api.yaml index 8a6b4f04..bf7fd7c2 100644 --- a/.github/workflows/validate-api.yaml +++ b/.github/workflows/validate-api.yaml @@ -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: @@ -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- diff --git a/.github/workflows/validate-web.yaml b/.github/workflows/validate-web.yaml index b11663f7..f396b437 100644 --- a/.github/workflows/validate-web.yaml +++ b/.github/workflows/validate-web.yaml @@ -1,3 +1,5 @@ +name: Validate Web + on: push: branches: @@ -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: