Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
macnev2013 committed Nov 27, 2023
1 parent c4fa9a9 commit 53449dc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@ on:
description: 'Number of runs'
required: true
type: number

jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: |
echo "::set-output name=matrix::$(jq -nc --argjson number ${{ github.event.inputs.number_of_runs }} '{"instance": [range(1; $number+1)]}')"
test:
timeout-minutes: 5
needs: prepare-matrix
runs-on: ubuntu-latest
strategy:
max-parallel: 30
matrix:
instance: ${{ fromJson('[' + join(range(1, github.event.inputs.number_of_runs + 1), ', ') + ']') }}
matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix)}}

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 53449dc

Please sign in to comment.