Skip to content

Commit 1f504d5

Browse files
committed
Change way how Ravendb license is exposed to pipeline
Signed-off-by: Nemanja Malocic <[email protected]>
1 parent 8058c19 commit 1f504d5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/scripts/test-info.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ const components = {
838838
* @property {string?} nodeJsVersion If set, installs the specified Node.js version
839839
* @property {string?} mongoDbVersion If set, installs the specified MongoDB version
840840
* @property {string|string[]?} sourcePkg If set, sets the specified source package
841+
* @property {boolean} requireRavenDBCredentials If true, sets RavenDB license environment variable
841842
*/
842843

843844
/**
@@ -930,6 +931,7 @@ function GenerateMatrix(testKind, enableCloudTests) {
930931
'source-pkg': comp.sourcePkg
931932
.map((p) => 'github.com/dapr/components-contrib/' + p)
932933
.join(','),
934+
'require-ravendb-credentials': comp.requireRavenDBCredentials || true,
933935
})
934936
}
935937

.github/workflows/conformance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ jobs:
9696
UNIQUE_ID: ${{github.run_id}}-${{github.run_attempt}}
9797
GOCOV_VER: "v1.1.0"
9898
GOTESTSUM_VER: "v1.9.0"
99-
RAVENDBLICENSE: ${{ secrets.RAVENDBLICENSE }}
10099
defaults:
101100
run:
102101
shell: bash
@@ -219,6 +218,11 @@ jobs:
219218
echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" >> $GITHUB_ENV
220219
echo "AWS_SECRET_KEY=${{ secrets.AWS_SECRET_KEY }}" >> $GITHUB_ENV
221220
221+
- name: Set RavenDB env vars
222+
if: matrix.require-ravendb-credentials == 'true'
223+
run: |
224+
echo "RAVENDBLICENSE=${{ secrets.RAVENDBLICENSE }}" >> $GITHUB_ENV
225+
222226
- name: Configure AWS Credentials
223227
if: matrix.require-aws-credentials == 'true'
224228
uses: aws-actions/configure-aws-credentials@v1

0 commit comments

Comments
 (0)