Skip to content

Instantly share code, notes, and snippets.

@ethomson
Created December 17, 2019 23:14
Show Gist options
  • Save ethomson/1b52ca3b472b10a16972414f96c474fb to your computer and use it in GitHub Desktop.
Save ethomson/1b52ca3b472b10a16972414f96c474fb to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: ./setup_test_infrastructure.sh
build:
needs: setup
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1
- run: |
./build.sh
./test.sh
shell: bash
shutdown:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: ./shutdown_test_infrastructure.sh
@hXtreme
Copy link

hXtreme commented Aug 20, 2020

Thanks for the example, github's documentation of workflows really falls short on jobs dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment