Skip to content

Commit

Permalink
Merge pull request #75 from panoratech/feat/ci-files
Browse files Browse the repository at this point in the history
Feat/ci files
  • Loading branch information
naelob authored Nov 13, 2023
2 parents 3dc293b + 869b634 commit 5785392
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 3 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend-snippet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
File renamed without changes.

0 comments on commit 5785392

Please sign in to comment.