reusable workflows?

This commit is contained in:
Hayden 2022-09-09 10:49:51 -08:00
parent ab376134b9
commit 858bfb5a40
3 changed files with 17 additions and 15 deletions

View file

@ -1,10 +1,7 @@
name: Frontend / Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
Frontend:

View file

@ -1,10 +1,7 @@
name: Go Build/Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
Go:

View file

@ -1,17 +1,25 @@
name: Build Nightly
on:
workflow_run:
workflows:
- "Go Build/Test"
- "Frontend / Integration"
types:
- completed
push:
branches: [main]
branches:
- main
jobs:
backend-tests:
name: "Backend Server Tests"
runs-on: ubuntu-latest
steps:
- uses: hay-kot/homebox/.github/workflows/go.yaml@main
frontend-tests:
name: "Frontend and End-to-End Tests"
runs-on: ubuntu-latest
steps:
- uses: hay-kot/homebox/.github/workflows/frontend.yaml@main
publish:
name: "Publish Nightly"
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: