Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ft-update-role-and-auth
Browse files Browse the repository at this point in the history
mugishaj092 committed May 28, 2024
2 parents 83f4940 + 0f6fa73 commit aa1d0ac
Showing 4 changed files with 35 additions and 72 deletions.
38 changes: 33 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
version: 2.1


orbs:
node: circleci/node@4.0.0
coveralls: coveralls/coveralls@2.1.0

executors:
node-executor:
@@ -13,26 +11,56 @@ executors:
jobs:
build:
executor: node-executor
environment:
CC_TEST_REPORTER_ID: b996f145a438f80141cfcc86bb35a2c212a2a24c394abee18da6add05eaaee7e
steps:
- checkout
- run: npm install

- run:
name: Install Code Climate test reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Initialize Code Climate test reporter
command: ./cc-test-reporter before-build
- run:
name: Run Tests
command: npm test
name: Run Tests with Coverage
command: npx nyc npm run test:coverage
- run:
name: Format Coverage Report
command: npx nyc report --reporter=text-lcov > coverage.lcov
- run:
name: Upload Coverage Report to Code Climate
command : ./cc-test-reporter after-build -t lcov
when: always
- store_artifacts: # upload test coverage as artifact
path: ./coverage/lcov.info


deploy:
executor: node-executor
steps:

- checkout
- run: npm install
- run:
name: Install TypeScript
command: sudo npm install -g typescript
- run:
name: Build Project
command: tsc

command: npx tsc


- run:
name: Compile TypeScript
command: ./node_modules/.bin/tsc




workflows:
version: 2
build_and_deploy:
36 changes: 0 additions & 36 deletions .github/workflows/job.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,8 @@
"dev": "nodemon server.ts",
"start": "ts-node server.ts",
"test": "jest --detectOpenHandles --coverage",
"build": "npx tsc",
"test:coverage": "nyc jest --coverage",
"build": "tsc",
"migrate": "sequelize db:migrate"
},
"devDependencies": {

0 comments on commit aa1d0ac

Please sign in to comment.