diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..528df41b --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,49 @@ +name: Test output + +on: + push: + +jobs: + matrix: + runs-on: ubuntu-24.04 + name: Matrix + timeout-minutes: 15 + + strategy: + fail-fast: false + matrix: + version: + - '1' + - '2' + - '3' + + outputs: + success: ${{ steps.success.outputs.success }} + + steps: + - id: success + run: echo "::set-output name=success::true" + + error: + runs-on: ubuntu-24.04 + name: Error + timeout-minutes: 15 + + steps: + - run: 'false' + + success: + runs-on: ubuntu-24.04 + name: Success + timeout-minutes: 15 + if: always() + needs: + - matrix + - error + + steps: + - run: echo ${{ needs.matrix.outputs.success }} + - run: '[[ "${{ needs.matrix.outputs.success-1 }}" == "true" ]]' + - run: '[[ "${{ needs.matrix.outputs.success-2 }}" == "true" ]]' + - run: '[[ "${{ needs.matrix.outputs.success-3 }}" == "true" ]]' + - run: '[[ "${{ needs.error.outputs.success }}" == "true" ]]'