Skip to content

Commit af2edf6

Browse files
committed
Improve CI config
1 parent 1b68320 commit af2edf6

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.circleci/config.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
defaults: &defaults
2-
working_directory: ~/conquery/frontend
2+
working_directory: ~/project/frontend
33
executor:
44
name: node/default
55

66

77
version: 2.1
88
orbs:
9-
node: circleci/node@1.1.6
9+
node: circleci/node@3.0.1
1010
jobs:
1111
test:
1212
<<: *defaults
1313
steps:
1414
- checkout:
15-
path: ~/conquery
16-
- node/with-cache:
17-
steps:
18-
- run: yarn install
19-
- run: yarn test
15+
path: ~/project
16+
- run:
17+
name: install python
18+
command: sudo apt update && sudo apt install python-minimal
19+
- node/install-packages:
20+
pkg-manager: yarn
21+
app-dir: ~/project/frontend
22+
cache-path: ~/project/frontend/node_modules
23+
- run: yarn test
2024
lint:
2125
<<: *defaults
2226
steps:
2327
- checkout:
24-
path: ~/conquery
25-
- node/with-cache:
26-
steps:
27-
- run: yarn install
28-
- run: yarn lint
28+
path: ~/project
29+
- run:
30+
name: install python
31+
command: sudo apt update && sudo apt install python-minimal
32+
- node/install-packages:
33+
pkg-manager: yarn
34+
app-dir: ~/project/frontend
35+
cache-path: ~/project/frontend/node_modules
36+
- run: yarn lint
2937

3038
workflows:
3139
build-and-test:

0 commit comments

Comments
 (0)