Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Jul 24, 2024
1 parent a2a751f commit 48ea403
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-zombienet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
workflow_dispatch:
inputs:
test_name:
description: "Name of the test suite to be run (default: \"*\", supports regex)"
description: "Name of the test suite to be run (e.g. zombie_flashbox, supports regex)"
required: true
type: string
default: "*"
default: ".*"
foundation_type:
description: Foundation type to filter tests, select zombie to run all zombienet tests
required: true
Expand Down Expand Up @@ -45,13 +45,13 @@ jobs:
run: |
# Read and filter the tests from the config file
if [ "${{ github.event.inputs.foundation_type || 'zombie' }}" = "*" ]; then
tests=$(jq -r --arg regex "${{ github.event.inputs.test_name || '*' }}" '
tests=$(jq -r --arg regex "${{ github.event.inputs.test_name || '.*' }}" '
.environments
| map(select(.name | test($regex)))
| map(.name)
' test/moonwall.config.json | jq -c '.')
else
tests=$(jq -r --arg type "${{ github.event.inputs.foundation_type || 'zombie' }}" --arg regex "${{ github.event.inputs.test_name || '*' }}" '
tests=$(jq -r --arg type "${{ github.event.inputs.foundation_type || 'zombie' }}" --arg regex "${{ github.event.inputs.test_name || '.*' }}" '
.environments
| map(select(.foundation.type == $type))
| map(select(.name | test($regex)))
Expand Down

0 comments on commit 48ea403

Please sign in to comment.