Skip to content

chore: workflow test #27

chore: workflow test

chore: workflow test #27

Workflow file for this run

name: Test strategy
on: [push]
jobs:
something:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.set-result.outputs.test }}
steps:
- uses: actions/github-script@v7
id: set-result
with:
script: |
const output = {};
core.setOutput("test", JSON.stringify(output))
return;
- name: Get result
run: echo "${{steps.set-result.outputs.test}}"
test:
if: ${{ fromJson(needs.something.outputs.result) }}
runs-on: ubuntu-latest
needs: ["something"]
strategy:
matrix: ${{ fromJson(needs.something.outputs.result) }}
steps:
- run: echo "Mock test logs ${{ strategy.job-index }}"
- run: echo "Mock test logs ${{ matrix.testgroup }} ${{ matrix.node }} ${{ matrix.something }}"