Skip to content

Test strategy

Test strategy #16

Workflow file for this run

name: Test strategy
on: workflow_dispatch
jobs:
something:
outputs:
result: ${{ steps.set-result.output.result }}
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
id: set-result
with:
script: return {"test-group":[1,2],"node":[14,16],"include":[{"node":14,"something":"else"}]}
result-encoding: string
- name: Get result
run: echo "${{steps.set-result.outputs.result}}"
test:
runs-on: ubuntu-latest
needs: ["something"]
strategy:
matrix: ${{ fromJson(needs.something.output.result) }}
steps:
- run: echo "Mock test logs ${{ strategy.job-index }}"
- run: echo "Mock test logs ${{ matrix.test-group }} ${{ matrix.node }} ${{ matrix.something }}"