Skip to content

Commit

Permalink
update workflow tester 88
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Falourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Sep 13, 2023
1 parent b94a020 commit c3c10c9
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/workflow-tester88.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true

jobs:
matrix:
common-matrix-job:
runs-on: ubuntu-latest
outputs:
environments: ${{ steps.environments.outputs.environments }}
Expand All @@ -27,14 +27,28 @@ jobs:
shell: bash

reusable:
needs: [matrix]
needs: [common-matrix-job]
strategy:
matrix:
environment: ${{ fromJSON(needs.matrix.outputs.environments) }}
environment: ${{ fromJSON(needs.common-matrix-job.outputs.environments) }}
fail-fast: true
max-parallel: 1
# environment:
# name: ${{ matrix.environment }}
uses: GuillaumeFalourd/poc-github-actions/.github/workflows/workflow-tester88-reusable.yml@main
with:
stage: ${{ matrix.environment }}
stage: ${{ matrix.environment }}

common-job:
needs: [common-matrix, reusable]
runs-on: ubuntu-latest
strategy:
matrix:
environment: ${{ fromJSON(needs.common-matrix.outputs.environments) }}
fail-fast: true
max-parallel: 1
# environment:
# name: ${{ matrix.environment }}
steps:
- name: Do something
run: echo "Do something with ${{ matrix.environment }}"

0 comments on commit c3c10c9

Please sign in to comment.