Skip to content

Commit

Permalink
chore: set browser auth without github actions for mongosh int tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy authored Jan 24, 2024
1 parent d646043 commit 4e7c08b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/actions/test-and-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,7 @@ runs:
if: ${{ runner.os != 'Windows' }}
shell: bash

- name: Set BROWSER_AUTH_COMMAND
run: |
BROWSER_AUTH_COMMAND=$(echo "$(which node) $(pwd)/src/test/fixture/curl.js")
echo "BROWSER_AUTH_COMMAND=$BROWSER_AUTH_COMMAND" >> $GITHUB_ENV
shell: bash

- name: Run Tests
env:
BROWSER_AUTH_COMMAND: ${{ env.BROWSER_AUTH_COMMAND }}
run: |
npm run test
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions src/test/suite/oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function hash(input: string): string {
}

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

const UNIQUE_TASK_ID =
process.env.GITHUB_RUN_ID && process.env.GITHUB_RUN_NUMBER
Expand Down

0 comments on commit 4e7c08b

Please sign in to comment.