Skip to content

Commit

Permalink
Merge pull request #1061 from golemfactory/grisha87/gh-action-golem-j…
Browse files Browse the repository at this point in the history
…s-log-level-param

GH Action golem js log level param
  • Loading branch information
mgordel authored Sep 2, 2024
2 parents 0480603 + d72f4c3 commit 98c7259
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ on:
description: "Provider VM version (e.g., v0.3.0)"
required: false
default: "v0.3.0"
log_level:
description: "The log level to force on golem-js pino-logger"
required: false
default: "info"

# We're going to interact with GH from the pipelines, so we need to get some permissions
permissions:
Expand All @@ -45,6 +49,7 @@ env:
PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }}
PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.3.0' }}
PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'holesky' }}
GOLEM_PINO_LOG_LEVEL: ${{ github.event.inputs.log_level || 'info' }}

jobs:
regular-checks:
Expand Down Expand Up @@ -122,7 +127,7 @@ jobs:
uses: ./.github/actions/prepare-tests

- name: Run the Examples tests
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"
run: docker exec -t -e GOLEM_PINO_LOG_LEVEL="${{ env.GOLEM_PINO_LOG_LEVEL }}" docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"

- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
Expand Down

0 comments on commit 98c7259

Please sign in to comment.