Test out failure checking job #163
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: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test1: | |
name: Test 1 | |
runs-on: ubuntu-latest | |
steps: | |
- run: true | |
test2: | |
name: Test 2 | |
runs-on: ubuntu-latest | |
steps: | |
- run: true | |
fail-check: | |
name: Fail Check | |
needs: [ test1, test2 ] | |
if: failure() && github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo failure |