From 528c208063d608ebe8fc60a0ee463baf0987dd2a Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 13 Nov 2023 18:14:14 +0100 Subject: [PATCH 1/4] ci file for sdk --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ packages/sdk/package.json | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ade5681a..77804bf34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,30 @@ jobs: - name: Lint, Build & Test run: pnpm run ci working-directory: packages/api + + build-sdk: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + working-directory: packages/sdk + + - name: Lint, Build & Test + run: pnpm run ci + working-directory: packages/sdk diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 105083340..1734fdd12 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -7,7 +7,9 @@ "types": "dist/index.d.ts", "scripts": { "test": "echo \"Error: no test specified\"", - "build": "tsup index.ts --format cjs,esm --dts" + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", + "build": "tsup index.ts --format cjs,esm --dts", + "ci": "pnpm run lint && pnpm run build" }, "keywords": [], "author": "", From a274590509f01dd7006bb50eb3f1139b93bb4921 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 13 Nov 2023 18:15:24 +0100 Subject: [PATCH 2/4] feat: removed qs --- .../@core/connections/crm/services/hubspot/hubspot.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/api/src/@core/connections/crm/services/hubspot/hubspot.service.ts b/packages/api/src/@core/connections/crm/services/hubspot/hubspot.service.ts index db58f83a7..27577573a 100644 --- a/packages/api/src/@core/connections/crm/services/hubspot/hubspot.service.ts +++ b/packages/api/src/@core/connections/crm/services/hubspot/hubspot.service.ts @@ -5,7 +5,6 @@ import config from 'src/@core/utils/config'; import { Prisma } from '@prisma/client'; import { HubspotOAuthResponse } from '../../types'; import { LoggerService } from 'src/@core/logger/logger.service'; -import qs from 'qs'; @Injectable() export class HubspotConnectionService { From d452abc5e131dace96dc3b727e7fab9b99714a22 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 13 Nov 2023 18:25:52 +0100 Subject: [PATCH 3/4] feat: fix build sdk --- packages/sdk/package.json | 4 ++-- packages/sdk/{ => src}/index.ts | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/sdk/{ => src}/index.ts (100%) diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 1734fdd12..ba9ef71e8 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -7,8 +7,8 @@ "types": "dist/index.d.ts", "scripts": { "test": "echo \"Error: no test specified\"", - "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", - "build": "tsup index.ts --format cjs,esm --dts", + "lint": "eslint \"src/**/*.ts\" --fix", + "build": "tsup src/index.ts --format cjs,esm --dts", "ci": "pnpm run lint && pnpm run build" }, "keywords": [], diff --git a/packages/sdk/index.ts b/packages/sdk/src/index.ts similarity index 100% rename from packages/sdk/index.ts rename to packages/sdk/src/index.ts From 869b634c33289050c61f9cd5780d3286de4f7f63 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 13 Nov 2023 18:32:29 +0100 Subject: [PATCH 4/4] feat: ci files updated --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++ packages/frontend-snippet/package.json | 3 +- 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77804bf34..e2b21e4cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,3 +68,57 @@ jobs: - name: Lint, Build & Test run: pnpm run ci working-directory: packages/sdk + + build-react-snippet: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + working-directory: packages/frontend-snippet + + - name: Lint, Build & Test + run: pnpm run ci + working-directory: packages/frontend-snippet + + build-docs: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + working-directory: website-docs + + - name: Build + run: pnpm run build + working-directory: website-docs diff --git a/packages/frontend-snippet/package.json b/packages/frontend-snippet/package.json index 91a6d618a..6b9ba2ed6 100644 --- a/packages/frontend-snippet/package.json +++ b/packages/frontend-snippet/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "preview": "vite preview" + "preview": "vite preview", + "ci": "pnpm run lint && pnpm run build" }, "dependencies": { "react": "^18.2.0",