This commit is contained in:
Elio Bischof
2024-11-27 12:52:54 +01:00
parent 1fb6dec1fe
commit 95a2cd79ff

View File

@@ -37,13 +37,13 @@ jobs:
id: prepare-matrix
run: |
if [ -z "${{ github.event.schedule }}" ]; then
echo "matrix=$(echo '[\"test:acceptance:qa\", \"test:acceptance:prod\"]' | jq -R .)" >> $GITHUB_OUTPUT
elif [ -z "${{ github.event.inputs.zitadel-env }}" ]; then
echo "matrix=$(echo '[\"test:acceptance:${{ github.event.inputs.zitadel-env }}\"]' | jq -R .)" >> $GITHUB_OUTPUT
elif [ -z "${{ github.event.inputs.zitadel-api-url }}" ]; then
echo "matrix=$(echo '[\"test:acceptance:custom\"]' | jq -R .)" >> $GITHUB_OUTPUT
echo 'matrix=["test:acceptance:qa", "test:acceptance:prod"]' >> $GITHUB_OUTPUT
elif [ -n "${{ github.event.inputs.zitadel-env }}" ]; then
echo "matrix=[\"test:acceptance:${{ github.event.inputs.zitadel-env }}\"]" >> $GITHUB_OUTPUT
elif [ -n "${{ github.event.inputs.zitadel-api-url }}" ]; then
echo 'matrix=["test:acceptance:custom"]' >> $GITHUB_OUTPUT
else
echo "matrix=$(echo '[\"format --check\", \"lint\", \"test:unit\", \"test:integration\", \"test:acceptance\"]' | jq -R .)" >> $GITHUB_OUTPUT
echo 'matrix=["format --check", "lint", "test:unit", "test:integration", "test:acceptance"]' >> $GITHUB_OUTPUT
fi
quality: