Skip to content

Commit e4a4a55

Browse files
TimelordUKclaude
andcommitted
replace env-cmd with native GitHub Actions env vars
env-cmd v11 has cross-platform issues with command parsing. Using native env: in GitHub Actions is more reliable. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 403bc35 commit e4a4a55

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ jobs:
6666

6767
- name: Run tests
6868
working-directory: node_modules/msnodesqlv8
69-
run: ./node_modules/.bin/env-cmd -e github-linux -- npm test
69+
env:
70+
DEFAULT: "Driver={ODBC Driver 18 for SQL Server}; Server=localhost; Uid=SA; Pwd=YourStrong!Passw0rd; TrustServerCertificate=yes;"
71+
run: npm test
7072
timeout-minutes: 30
7173

7274
- name: Upload test results
@@ -131,7 +133,9 @@ jobs:
131133

132134
- name: Run tests
133135
working-directory: node_modules/msnodesqlv8
134-
run: ./node_modules/.bin/env-cmd -e github-windows -- npm test
136+
env:
137+
DEFAULT: "Driver={ODBC Driver 17 for SQL Server}; Server=localhost; Uid=sa; Pwd=Password12;"
138+
run: npm test
135139
timeout-minutes: 30
136140

137141
- name: Upload test results

0 commit comments

Comments
 (0)