Skip to content

Commit

Permalink
Set jest cache to tmp/jest and integrate it into CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Jan 8, 2022
1 parent 8029b57 commit 8387c79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ cache:
paths:
- ./tmp/npm/
- ./tmp/ts-node-cache/
# `jest` cache is configured in jest.config.js
- ./tmp/jest/

stages:
- check
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ process.env['GLOBAL_DATA_DIR'] = globals.dataDir;

module.exports = {
testEnvironment: "node",
cacheDirectory: '<rootDir>/tmp/jest',
verbose: true,
roots: [
"<rootDir>/tests"
Expand Down
2 changes: 2 additions & 0 deletions scripts/test-pipelines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cache:
paths:
- ./tmp/npm/
- ./tmp/ts-node-cache/
# `jest` cache is configured in jest.config.js
- ./tmp/jest/
EOF

printf "\n"
Expand Down

0 comments on commit 8387c79

Please sign in to comment.