Skip to content

Commit 82cc3b8

Browse files
committed
testing with EXHORT_BACKEND_URL
1 parent c81602c commit 82cc3b8

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/integration.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ concurrency:
1313

1414
jobs:
1515
call-shared:
16-
uses: trustification/exhort-integration-tests/.github/workflows/integration.yml@main
17-
with:
18-
language: javascript
19-
repo-url: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
20-
commit-sha: ${{ github.event.pull_request.head.sha || github.sha }}
16+
- uses: trustification/exhort-integration-tests/.github/workflows/integration.yml@main
17+
with:
18+
language: javascript
19+
repo-url: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
20+
commit-sha: ${{ github.event.pull_request.head.sha || github.sha }}
21+
env:
22+
EXHORT_BACKEND_URL: https://exhort.stage.devshift.net

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ function selectExhortBackend(opts = {}) {
102102
readAndPrintVersionFromPackageJson();
103103
}
104104

105-
const result = getCustom('EXHORT_BACKEND_URL', undefined, opts);
105+
let url;
106+
if (getCustom('EXHORT_DEV_MODE', false, opts)) {
107+
url = 'https://exhort.stage.devshift.net';
108+
} else {
109+
url = getCustom('EXHORT_BACKEND_URL', undefined, opts);
110+
}
106111

107112
if (!result) {
108113
throw new Error(`EXHORT_BACKEND_URL is unset`)

0 commit comments

Comments
 (0)