From d47bbbaa63d9627bddc71f5b3b9aa08c1db74dca Mon Sep 17 00:00:00 2001 From: Christian Siewert Date: Thu, 11 Jul 2024 14:03:59 +0200 Subject: [PATCH] Run tests with `MORYX_COMMERCIAL_BUILD` set to `false` While the `MORYX_COMMERCIAL_BUILD` is set to `true` by default, this is not the case for (unit) tests. So it needs explicitly be disabled which is also configurable now. --- .github/workflows/run-tests.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index da91220..b01bbb9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,6 +21,10 @@ on: required: false type: string default: '20' + MORYX_COMMERCIAL_BUILD: + required: false + type: boolean + default: false secrets: npm_auth_token: required: false @@ -34,17 +38,11 @@ on: jobs: Tests: runs-on: ubuntu-latest + env: + MORYX_COMMERCIAL_BUILD: ${{ inputs.MORYX_COMMERCIAL_BUILD }} steps: - uses: actions/checkout@v4 - # - uses: actions/cache@v4 - # id: cache-nuget - # with: - # path: ${{ github.workspace }}/.nuget/packages - # key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} - # restore-keys: | - # ${{ runner.os }}-nuget- - - name: 🔧 Setup Node uses: actions/setup-node@v4 with: