Skip to content

Commit e283656

Browse files
committed
ci(poppeteer): try to persist the default cache in home instead of moving it
~ doesn't work, CircleCI doesn't support variables in env, neither does it guarantee a fixed home dir path. This could be the easies solution.
1 parent b1f3e3c commit e283656

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.circleci/config.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ executors:
2020
GIT_AUTHOR_NAME: vis-bot
2121
GIT_COMMITTER_EMAIL: visjsbot@gmail.com
2222
GIT_COMMITTER_NAME: vis-bot
23-
PUPPETEER_CACHE_DIR: ~/repo/cache/puppeteer
2423

2524
node-interop:
2625
docker:
@@ -32,7 +31,6 @@ executors:
3231
GIT_AUTHOR_NAME: vis-bot
3332
GIT_COMMITTER_EMAIL: visjsbot@gmail.com
3433
GIT_COMMITTER_NAME: vis-bot
35-
PUPPETEER_CACHE_DIR: ~/repo/cache/puppeteer
3634

3735
jobs:
3836
prepare:
@@ -44,35 +42,36 @@ jobs:
4442
- run: npm ci
4543

4644
- persist_to_workspace:
47-
root: .
45+
root: ~
4846
paths:
49-
- "*"
47+
- ".cache"
48+
- "repo"
5049

5150
build:
5251
executor: node
5352

5453
steps:
5554
- attach_workspace:
56-
at: .
55+
at: ~
5756

5857
- run: npm run build
5958

6059
- persist_to_workspace:
61-
root: .
60+
root: ~
6261
paths:
63-
- "babel-preset"
64-
- "babel-register"
65-
- "bin"
66-
- "declarations"
67-
- "dist"
68-
- "lib"
62+
- "repo/babel-preset"
63+
- "repo/babel-register"
64+
- "repo/bin"
65+
- "repo/declarations"
66+
- "repo/dist"
67+
- "repo/lib"
6968

7069
lint:
7170
executor: node
7271

7372
steps:
7473
- attach_workspace:
75-
at: .
74+
at: ~
7675

7776
- run: npm run style
7877
- run: npm run lint
@@ -82,7 +81,7 @@ jobs:
8281

8382
steps:
8483
- attach_workspace:
85-
at: .
84+
at: ~
8685

8786
- run: npm run test:unit
8887

@@ -94,7 +93,7 @@ jobs:
9493
condition: << pipeline.parameters.is-testing-interoperability >>
9594
steps:
9695
- attach_workspace:
97-
at: .
96+
at: ~
9897

9998
- run: npm pack
10099

@@ -120,7 +119,7 @@ jobs:
120119

121120
steps:
122121
- attach_workspace:
123-
at: .
122+
at: ~
124123

125124
- run:
126125
name: Prepare NPM

0 commit comments

Comments
 (0)