Skip to content

Update conditions_test.yml #55

Update conditions_test.yml

Update conditions_test.yml #55

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!"