Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 28, 2024
1 parent f3e94e9 commit 9777e23
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,41 @@ jobs:
- name: Generate tests
id: gen_tests
run: echo "::set-output name=all_tests::$(./.github/scripts/generate_tests.sh | base64 -d)"
generate-tests:
name: Generate Tests
runs-on: ubuntu-latest
outputs:
all_tests: ${{ steps.get_all_tests.outputs.all_tests }}
steps:
- uses: actions/checkout@v4
- id: get_all_tests
name: Generate Tests
run: echo "::set-output name=all_tests::$(./.github/scripts/generate_tests.sh | base64 -d)"
use-new-output:
runs-on: ubuntu-latest
needs: [make-new-output]
strategy:
matrix:
version: ${{ toJSON(needs.make-new-output.outputs.all_tests) }}
steps:
- run: echo '${{ toJSON(needs.make-new-output.outputs) }}'
- run: echo '${{ toJSON(needs.make-new-output.outputs.all_tests) }}'
- run: echo '${{ toJSON(matrix.version) }}'
use-old-output:
runs-on: ubuntu-latest
needs: [make-old-output]
strategy:
matrix:
version: ${{ toJSON(needs.make-old-output.outputs.all_tests) }}
steps:
- run: echo '${{ toJSON(needs.make-old-output.outputs.all_tests) }}'
- run: echo '${{ toJSON(matrix.version) }}'
run-test:
name: '${{matrix.tests.name}} | ${{matrix.tests.type}} | ${{matrix.tests.syntax}} | ${{matrix.tests.api}}'
needs:
- generate-tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
tests: ${{ fromJSON(needs.generate-tests.outputs.all_tests) || fromJSON('["dummy"]') }}
steps:
- name: Report full path of test
run: echo ${{matrix.tests.path}}

0 comments on commit 9777e23

Please sign in to comment.