Skip to content

Commit

Permalink
chore: Fix reusable workflow in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Jan 31, 2025
1 parent 51be7aa commit 9bd5573
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
strategy:
fail-fast: false
matrix:
mode: ${{ inputs.quick_test == 'true' && fromJson('["random"]') || fromJson('["random","controlled"]') }}
profile: ${{ inputs.quick_test == 'true' && fromJson('["all-features"]') || fromJson('["all-features","single-seller","no-payment-reconciliation","no-auth","no-tax-calculation","prepayment-always-required","facilityuse-has-slots"]') }}
flow: ${{ inputs.quick_test == 'true' && fromJson('["both"]') || fromJson('["simple","approval"]') }}
include: ${{ inputs.quick_test == 'true' && fromJson('[]') || fromJson('[{"mode":"random","profile":"all-features","flow":"both"},{"mode":"controlled","profile":"all-features","flow":"both"}]') }}
mode: ${{ inputs.quick_test == true && fromJson('["random"]') || fromJson('["random","controlled"]') }}
profile: ${{ inputs.quick_test == true && fromJson('["all-features"]') || fromJson('["all-features","single-seller","no-payment-reconciliation","no-auth","no-tax-calculation","prepayment-always-required","facilityuse-has-slots"]') }}
flow: ${{ inputs.quick_test == true && fromJson('["both"]') || fromJson('["simple","approval"]') }}
include: ${{ inputs.quick_test == true && fromJson('[]') || fromJson('[{"mode":"random","profile":"all-features","flow":"both"},{"mode":"controlled","profile":"all-features","flow":"both"}]') }}

concurrency:
group: openactive-test-suite--${{ github.head_ref }}--${{ matrix.mode }}.${{ matrix.profile }}.${{ matrix.flow }}
Expand Down Expand Up @@ -207,4 +207,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 9bd5573

Please sign in to comment.