From dfdc850e021b59388051870f1ef267f61274d072 Mon Sep 17 00:00:00 2001 From: Shivangi Das Date: Tue, 19 Mar 2024 12:09:35 +0000 Subject: [PATCH] chore(cb2-11221): revert --- .github/workflows/pr-checks.yml | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 00ffbd0d0..ac46962fa 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -35,7 +35,7 @@ jobs: run: npm run test - name: start timeout-minutes: 20 - run: npm run start && test:integration + run: npm run test-i env: AWS_ACCESS_KEY_ID: foo AWS_SECRET_ACCESS_KEY: bar diff --git a/package.json b/package.json index ca447cefb..bae5afe25 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "src/handler.js", "engines": { "node": "18.*", - "npm": "10.*" + "npm": "9.*" }, "scripts": { "start": "BRANCH=local SLS_DEBUG=* serverless offline start --noPrependStageInUrl", @@ -14,8 +14,8 @@ "build:copy": "find src -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build && find tests -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build", "test:unit": "BRANCH=local SLS_DEBUG=* AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand", "test": "npm run test:unit -- --coverage", - "test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand --detectOpenHandles --forceExit", - "test-i": "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 npm run test:integration -- --globalSetup='./scripts/setup.ts' --globalTeardown='./scripts/destroyServices.ts'", + "test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand --detectOpenHandles", + "test-i": "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 npm run test:integration -- --globalSetup='./scripts/setup.ts' --globalTeardown='./scripts/teardown.ts'", "security-checks": "git secrets --scan", "lint:fix": "eslint '*/**/*.ts' --fix", "lint": "eslint '*/**/*.ts' -f json -o .reports/eslint/eslint-report.json", @@ -27,7 +27,7 @@ "audit": "npm audit --prod", "package": "mkdir ${ZIP_NAME} && cp package.json package-lock.json ${ZIP_NAME}/ && cp -r .build/src/* ${ZIP_NAME}/ && cd ${ZIP_NAME} && npm ci --production --ignore-scripts && rm package.json package-lock.json && zip -qr ../${ZIP_NAME}.zip .", "prepare": "husky install", - "tools-setup": "sls dynamodb install", + "tools-setup": "sls dynamodb install && apt-get update && apt-get install cpio", "pre-push": "npm run prepush" }, "repository": {