Skip to content

Commit 4e7c08b

Browse files
authored
chore: set browser auth without github actions for mongosh int tests (#672)
1 parent d646043 commit 4e7c08b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/actions/test-and-build/action.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,7 @@ runs:
6969
if: ${{ runner.os != 'Windows' }}
7070
shell: bash
7171

72-
- name: Set BROWSER_AUTH_COMMAND
73-
run: |
74-
BROWSER_AUTH_COMMAND=$(echo "$(which node) $(pwd)/src/test/fixture/curl.js")
75-
echo "BROWSER_AUTH_COMMAND=$BROWSER_AUTH_COMMAND" >> $GITHUB_ENV
76-
shell: bash
77-
7872
- name: Run Tests
79-
env:
80-
BROWSER_AUTH_COMMAND: ${{ env.BROWSER_AUTH_COMMAND }}
8173
run: |
8274
npm run test
8375
shell: bash

src/test/suite/oidc.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function hash(input: string): string {
3131
}
3232

3333
// Need to be provided via CI env because we can't get a hold for node.js exec
34-
// path in our tests - they run inside a vscode process
35-
const browserShellCommand = process.env.BROWSER_AUTH_COMMAND;
34+
// path in our tests - they run inside a vscode process in the built dir.
35+
const browserShellCommand = `$(echo "$(which node) ${__dirname}/../../../src/test/fixture/curl.js")`;
3636

3737
const UNIQUE_TASK_ID =
3838
process.env.GITHUB_RUN_ID && process.env.GITHUB_RUN_NUMBER

0 commit comments

Comments
 (0)