Skip to content

Commit 573949e

Browse files
chore(deps): swap dotenv for Node.js native env loading (#2733)
Signed-off-by: Derek Roberts <derek.roberts@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 30b906d commit 573949e

4 files changed

Lines changed: 12 additions & 17 deletions

File tree

.github/workflows/reusable-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
integration-tests:
2020
name: Integration
2121
runs-on: ubuntu-24.04
22-
timeout-minutes: 1
22+
timeout-minutes: 5
2323
steps:
2424
- uses: actions/checkout@v6
25+
- uses: actions/setup-node@v6
26+
name: Setup Node
27+
with:
28+
node-version: 24
2529
- id: cache-npm
2630
uses: actions/cache@v5
2731
with:

common/tests/integration/package-lock.json

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

common/tests/integration/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
},
99
"dependencies": {
1010
"axios": "^1.6.8",
11-
"dotenv": "^17.0.0",
1211
"js-yaml": "^4.1.0",
1312
"lodash": "^4.17.21"
1413
}

common/tests/integration/src/main.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import dotenv from "dotenv";
21
import axios from "axios";
32
import * as fs from "fs";
43
import * as path from "path";
@@ -7,7 +6,13 @@ import assert from "node:assert/strict";
76

87
import pkg from "lodash";
98

10-
dotenv.config();
9+
try {
10+
process.loadEnvFile();
11+
} catch (error) {
12+
if (error?.code !== "ENOENT") {
13+
throw error;
14+
}
15+
}
1116

1217
const { isEqual, omit } = pkg;
1318

0 commit comments

Comments
 (0)