Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 5a9fb9c

Browse files
authored
ci: new cicd (#12)
* ci: new cicd * ci: add unit tests * ci: update orb
1 parent 9f8d55c commit 5a9fb9c

2 files changed

Lines changed: 20 additions & 11 deletions

File tree

.circleci/config.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11
version: 2.1
22

33
orbs:
4-
vfcommon: voiceflow/common@0.0.187
4+
vfcommon: voiceflow/common@0.0.277
5+
sonarcloud: sonarsource/sonarcloud@1.0.2
56

67
jobs:
7-
build-and-test:
8+
test:
89
executor: vfcommon/default-executor
910
steps:
1011
- checkout
1112
- vfcommon/install_node_modules
12-
- vfcommon/lint_report
13+
- attach_workspace:
14+
at: ~/voiceflow
15+
- vfcommon/lint_report:
16+
run_in_background: true
1317
- vfcommon/dependency_tests:
14-
step_name: Dependency Tests
15-
- vfcommon/build
16-
- vfcommon/unit_tests
17-
- vfcommon/integration_tests
18+
run_in_background: true
19+
- vfcommon/unit_tests:
20+
run_in_background: true
21+
- vfcommon/integration_tests:
22+
wait: true
1823

1924
workflows:
20-
2125
test-and-release:
2226
jobs:
23-
- build-and-test:
27+
- vfcommon/install_and_build:
28+
context: dev-test
29+
30+
- test:
2431
context: dev-test
32+
requires:
33+
- vfcommon/install_and_build
2534

2635
- vfcommon/release:
2736
context: dev-test
2837
requires:
29-
- build-and-test
38+
- test
39+
- vfcommon/install_and_build
3040
filters:
3141
branches:
3242
only: master

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"lint:output": "yarn run eslint-output --quiet \"**/*.{js,ts}\"",
7070
"lint:quiet": "yarn lint --quiet",
7171
"lint:report": "yarn lint:output",
72-
"prepublishOnly": "yarn build",
7372
"test": "yarn test:run",
7473
"test:dependencies": "depcheck",
7574
"test:integration": "NODE_ENV=test nyc --report-dir nyc_coverage_integration ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.it.ts'",

0 commit comments

Comments
 (0)