Update summary_test.yml #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test_require_status_check | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
pre-requisite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Req | |
id: get-req | |
run: echo "get req" | |
build-one: | |
name: build one | |
runs-on: ubuntu-latest | |
needs: pre-requisite | |
steps: | |
- run: | | |
echo "build-one" | |
exit 1 | |
build-two: | |
name: build two | |
runs-on: ubuntu-latest | |
needs: pre-requisite | |
steps: | |
- run: echo "build-two" | |
test: | |
name: Test initial | |
needs: | |
- pre-requisite | |
- build-two | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "Testing builds" | |
exit 1 | |
test-more: | |
name: Test more | |
needs: | |
- pre-requisite | |
- build-two | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Test more" | |
results: | |
runs-on: ubuntu-latest | |
if: ${{ always() && contains(needs.*.result, 'failure') == false}} | |
needs: | |
- build-one | |
- build-two | |
- test | |
- test-more | |
steps: | |
- run: echo "Workflows have succeeded!" |