Skip to content

Commit

Permalink
feat: ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Oct 25, 2023
1 parent c6a1480 commit 5311758
Show file tree
Hide file tree
Showing 5 changed files with 590 additions and 41 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
run: pnpm install
working-directory: api

- name: Build
run: pnpm run build
working-directory: api

- name: Test
run: pnpm run test
- name: Lint, Build & Test
run: pnpm run ci
working-directory: api
3 changes: 2 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"ci": "pnpm run lint && pnpm run build && pnpm run test"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
Expand Down
31 changes: 0 additions & 31 deletions sdk/index.js

This file was deleted.

9 changes: 6 additions & 3 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "panora-sdk",
"version": "1.0.2",
"description": "Panora SDK",
"main": "index.js",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc"
"build": "tsup index.ts --format cjs,esm --dts"
},
"keywords": [],
"author": "",
Expand All @@ -17,6 +19,7 @@
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"eslint-plugin-react": "^7.33.2"
"eslint-plugin-react": "^7.33.2",
"tsup": "^7.2.0"
}
}
Loading

0 comments on commit 5311758

Please sign in to comment.