Skip to content

Commit

Permalink
chore: workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
janwvjaarsveld committed Aug 23, 2024
1 parent 097e307 commit 679767f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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:
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 }}"

0 comments on commit 679767f

Please sign in to comment.