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 d35c863
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 }}"

0 comments on commit d35c863

Please sign in to comment.