Skip to content

test dynamic matrices #4

test dynamic matrices

test dynamic matrices #4

Workflow file for this run

name: Dynamic Matrices
on:
push:
pull_request:
types: [ assigned, opened, synchronize, reopened, edited ]
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-20.04
outputs:
# matrix: ${{ steps.set-matrix.outputs.matrix }}
unit-tests-matrix: ${{ steps.set-matrix.outputs.unit-tests-matrix }}
jira-it-matrix: ${{ steps.set-matrix.outputs.jira-it-matrix }}
confluence-it-matrix: ${{ steps.set-matrix.outputs.confluence-it-matrix }}
bitbucket-it-matrix: ${{ steps.set-matrix.outputs.bitbucket-it-matrix }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
pom.xml
.github/workflows/matrix.json
.github/workflows/prepare-matrices.sh
- id: set-matrix
run: .github/workflows/prepare-matrices.sh
run-tests:
needs: prepare
runs-on: ubuntu-20.04
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.unit-tests-matrix) }}
fail-fast: false
steps:
- run: echo "Matrix - Java ${{ matrix.java-version }}"
integration-tests-jira:
needs: prepare
runs-on: ubuntu-20.04
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.jira-it-matrix) }}
fail-fast: false
steps:
- run: echo "Matrix - Java ${{ matrix.java-version }} Jira ${{ matrix.jira-version }}"
integration-tests-confluence:
needs: prepare
runs-on: ubuntu-20.04
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.confluence-it-matrix) }}
fail-fast: false
steps:
- run: echo "Matrix - Java ${{ matrix.java-version }} Confluence ${{ matrix.confluence-version }}"
integration-tests-bitbucket:
needs: prepare
runs-on: ubuntu-20.04
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.bitbucket-it-matrix) }}
fail-fast: false
steps:
- run: echo "Matrix - Java ${{ matrix.java-version }} Bitbucket ${{ matrix.bitbucket-version }}"