Skip to content

Commit cfdebb6

Browse files
authored
specify bee (incremental) build cache directory environment variable for windows docker run command and cache to Library directory (#717)
1 parent ab64768 commit cfdebb6

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"env": {
1515
"node": true,
1616
"es6": true,
17-
"jest/globals": true
17+
"jest/globals": true,
18+
"es2020": true
1819
},
1920
"rules": {
2021
// Error out for code formatting errors

dist/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/cloud-runner/tests/cloud-runner-github-checks.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('Cloud Runner Github Checks', () => {
1717
status: 200,
1818
data: {},
1919
});
20+
// eslint-disable-next-line unicorn/no-useless-undefined
2021
jest.spyOn(GitHub as any, 'runUpdateAsyncChecksWorkflow').mockResolvedValue(undefined);
2122
});
2223

src/model/docker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class Docker {
107107
--workdir c:${dockerWorkspacePath} \
108108
--rm \
109109
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
110+
--env BEE_CACHE_DIRECTORY=c:${dockerWorkspacePath}/Library/bee_cache \
110111
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
111112
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
112113
--volume "${workspace}":"c:${dockerWorkspacePath}" \

0 commit comments

Comments
 (0)