diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ade5681a..e2b21e4cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,84 @@ 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 + + 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/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 { 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", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 105083340..ba9ef71e8 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/**/*.ts\" --fix", + "build": "tsup src/index.ts --format cjs,esm --dts", + "ci": "pnpm run lint && pnpm run build" }, "keywords": [], "author": "", 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