diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e97b0aac..6c37da95 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,15 +8,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [10, 12, 14, 16] + node: [14, 16, 18, 19] include: # use latest npm by default - npm-version: latest - # overrides for node 10 and 12 - - node: 10 - npm-version: ^7 - - node: 12 - npm-version: ^8 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -30,7 +25,7 @@ jobs: - run: npx lerna bootstrap --no-ci - run: npm test - run: npm run codecov - if: matrix.node == 14 + if: matrix.node == 19 lint: runs-on: ubuntu-latest @@ -38,7 +33,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 15 + node-version: 19 - run: npm install - run: npm run lint @@ -51,9 +46,9 @@ jobs: for f in $(git ls-files "**package-lock.json") do lockfileVersion=$(jq ".lockfileVersion" $f) - if [ $lockfileVersion -ne 2 ] + if [ $lockfileVersion -lt 2 ] then - >&2 echo "package-lock.json files should have lockfileVersion 2, but $f has version $lockfileVersion" + >&2 echo "package-lock.json files should have at least lockfileVersion 2, but $f has version $lockfileVersion" exit 1 fi done diff --git a/e2e-test-server/package-lock.json b/e2e-test-server/package-lock.json index cc9c42c5..b934c7c7 100644 --- a/e2e-test-server/package-lock.json +++ b/e2e-test-server/package-lock.json @@ -24,7 +24,7 @@ "typescript": "4.8.4" }, "engines": { - "node": ">=10" + "node": ">=14" } }, "node_modules/@babel/code-frame": { diff --git a/e2e-test-server/package.json b/e2e-test-server/package.json index cc5dd286..48003c67 100644 --- a/e2e-test-server/package.json +++ b/e2e-test-server/package.json @@ -13,7 +13,7 @@ "license": "Apache-2.0", "keywords": [], "engines": { - "node": ">=10" + "node": ">=14" }, "scripts": { "lint": "gts lint", diff --git a/package-lock.json b/package-lock.json index 318c3e5c..13a03a4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "lerna": "4.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 0c583351..f674ecd7 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "author": "Google Inc.", "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" }, "devDependencies": { "lerna": "4.0.0" diff --git a/packages/opentelemetry-cloud-monitoring-exporter/package-lock.json b/packages/opentelemetry-cloud-monitoring-exporter/package-lock.json index 27a8d295..5efcbc50 100644 --- a/packages/opentelemetry-cloud-monitoring-exporter/package-lock.json +++ b/packages/opentelemetry-cloud-monitoring-exporter/package-lock.json @@ -35,7 +35,7 @@ "typescript": "4.8.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", diff --git a/packages/opentelemetry-cloud-monitoring-exporter/package.json b/packages/opentelemetry-cloud-monitoring-exporter/package.json index 254b5769..dc85f8b1 100644 --- a/packages/opentelemetry-cloud-monitoring-exporter/package.json +++ b/packages/opentelemetry-cloud-monitoring-exporter/package.json @@ -26,7 +26,7 @@ "author": "Google Inc.", "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-cloud-trace-exporter/package-lock.json b/packages/opentelemetry-cloud-trace-exporter/package-lock.json index 2f4db7e8..0faea611 100644 --- a/packages/opentelemetry-cloud-trace-exporter/package-lock.json +++ b/packages/opentelemetry-cloud-trace-exporter/package-lock.json @@ -33,7 +33,7 @@ "typescript": "4.8.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", diff --git a/packages/opentelemetry-cloud-trace-exporter/package.json b/packages/opentelemetry-cloud-trace-exporter/package.json index 8355cb0a..612d4e9f 100644 --- a/packages/opentelemetry-cloud-trace-exporter/package.json +++ b/packages/opentelemetry-cloud-trace-exporter/package.json @@ -25,7 +25,7 @@ "author": "Google Inc.", "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-cloud-trace-propagator/package-lock.json b/packages/opentelemetry-cloud-trace-propagator/package-lock.json index f0751280..527e02dc 100644 --- a/packages/opentelemetry-cloud-trace-propagator/package-lock.json +++ b/packages/opentelemetry-cloud-trace-propagator/package-lock.json @@ -25,7 +25,7 @@ "typescript": "4.8.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", diff --git a/packages/opentelemetry-cloud-trace-propagator/package.json b/packages/opentelemetry-cloud-trace-propagator/package.json index f4378059..678bfe22 100644 --- a/packages/opentelemetry-cloud-trace-propagator/package.json +++ b/packages/opentelemetry-cloud-trace-propagator/package.json @@ -25,7 +25,7 @@ "author": "Google Inc.", "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-resource-util/package-lock.json b/packages/opentelemetry-resource-util/package-lock.json index 966bd457..b3029e37 100644 --- a/packages/opentelemetry-resource-util/package-lock.json +++ b/packages/opentelemetry-resource-util/package-lock.json @@ -29,7 +29,7 @@ "typescript": "4.8.4" }, "engines": { - "node": ">=10" + "node": ">=14" }, "peerDependencies": { "@opentelemetry/resources": "^1.0.0", diff --git a/packages/opentelemetry-resource-util/package.json b/packages/opentelemetry-resource-util/package.json index eef07b2b..c00d9a06 100644 --- a/packages/opentelemetry-resource-util/package.json +++ b/packages/opentelemetry-resource-util/package.json @@ -26,7 +26,7 @@ "author": "Google Inc.", "license": "Apache-2.0", "engines": { - "node": ">=10" + "node": ">=14" }, "files": [ "build/src/**/*.js", diff --git a/samples/trace/package-lock.json b/samples/trace/package-lock.json index be0da60e..bf14acb1 100644 --- a/samples/trace/package-lock.json +++ b/samples/trace/package-lock.json @@ -14,7 +14,7 @@ "@opentelemetry/sdk-trace-node": "^1.0.0" }, "engines": { - "node": ">=10" + "node": ">=14" } }, "node_modules/@opentelemetry/api": { diff --git a/samples/trace/package.json b/samples/trace/package.json index a70f5b8b..bbeb352c 100644 --- a/samples/trace/package.json +++ b/samples/trace/package.json @@ -8,7 +8,7 @@ "start": "node ./index.js" }, "engines": { - "node": ">=10" + "node": ">=14" }, "repository": "GoogleCloudPlatform/opentelemetry-operations-js", "dependencies": {