From 8eb2a4156d324bb7f84c126aad1b88ed35807355 Mon Sep 17 00:00:00 2001 From: Riqwan Thamir Date: Tue, 9 Apr 2024 14:04:31 +0200 Subject: [PATCH] chore: disable turbo and jest cache (#7024) * chore: disable turbo cache * chore: remove cache for build * chore: disable jest cache --- .github/workflows/codegen-test.yml | 2 +- integration-tests/api/package.json | 4 ++-- integration-tests/modules/package.json | 4 ++-- package.json | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/codegen-test.yml b/.github/workflows/codegen-test.yml index 9f0a591317..4b1fe2c2d8 100644 --- a/.github/workflows/codegen-test.yml +++ b/.github/workflows/codegen-test.yml @@ -34,7 +34,7 @@ jobs: extension: codegen - name: Build Packages - Force - run: yarn build --force --no-cache + run: yarn build --force - name: Assert latest codegen build committed run: ./scripts/assert-codegen-build-committed-actions.sh diff --git a/integration-tests/api/package.json b/integration-tests/api/package.json index 6401e8fe06..6445e1fd4b 100644 --- a/integration-tests/api/package.json +++ b/integration-tests/api/package.json @@ -5,8 +5,8 @@ "license": "MIT", "private": true, "scripts": { - "test:integration": "jest --silent=false --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", - "test:integration:chunk": "jest --silent --bail --maxWorkers=50% --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", + "test:integration": "jest --silent=false --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", + "test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", "build": "babel src -d dist --extensions \".ts,.js\"" }, "dependencies": { diff --git a/integration-tests/modules/package.json b/integration-tests/modules/package.json index f4d46fe22f..b1fb55becf 100644 --- a/integration-tests/modules/package.json +++ b/integration-tests/modules/package.json @@ -5,8 +5,8 @@ "license": "MIT", "private": true, "scripts": { - "test:integration": "jest --silent --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", - "test:integration:chunk": "jest --silent --bail --maxWorkers=50% --forceExit --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", + "test:integration": "jest --silent --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", + "test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", "build": "babel src -d dist --extensions \".ts,.js\"" }, "dependencies": { diff --git a/package.json b/package.json index 3b7dce0805..68c84c4015 100644 --- a/package.json +++ b/package.json @@ -70,13 +70,13 @@ "lint:path": "eslint --ignore-path .eslintignore --ext .js,.ts,.tsx", "prettier": "prettier", "jest": "jest", - "test": "turbo run test --concurrency=50% --no-daemon", + "test": "turbo run test --concurrency=50% --no-daemon --no-cache", "test:chunk": "./scripts/run-workspace-unit-tests-in-chunks.sh", - "test:integration:packages": "turbo run test:integration --concurrency=50% --no-daemon --filter='./packages/*'", - "test:integration:api": "turbo run test:integration:chunk --concurrency=50% --no-daemon --filter=integration-tests-api", - "test:integration:plugins": "turbo run test:integration --concurrency=50% --no-daemon --filter=integration-tests-plugins", - "test:integration:modules": "turbo run test:integration:chunk --concurrency=50% --no-daemon --filter=integration-tests-modules", - "test:integration:repositories": "turbo run test:integration --concurrency=50% --no-daemon --filter=integration-tests-repositories", + "test:integration:packages": "turbo run test:integration --concurrency=50% --no-daemon --no-cache --filter='./packages/*'", + "test:integration:api": "turbo run test:integration:chunk --concurrency=50% --no-daemon --no-cache --filter=integration-tests-api", + "test:integration:plugins": "turbo run test:integration --concurrency=50% --no-daemon --no-cache --filter=integration-tests-plugins", + "test:integration:modules": "turbo run test:integration:chunk --concurrency=50% --no-daemon --no-cache --filter=integration-tests-modules", + "test:integration:repositories": "turbo run test:integration --concurrency=50% --no-daemon --no-cache --filter=integration-tests-repositories", "openapi:generate": "yarn ./packages/oas/oas-github-ci run ci --with-full-file", "medusa-oas": "yarn ./packages/oas/medusa-oas-cli run medusa-oas", "release:snapshot": "changeset publish --no-git-tags --snapshot --tag snapshot",