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 name: Frontend / Integration
on: on:
push: workflow_call:
branches: [main]
pull_request:
branches: [main]
jobs: jobs:
Frontend: Frontend:

View file

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

View file

@ -1,17 +1,25 @@
name: Build Nightly name: Build Nightly
on: on:
workflow_run:
workflows:
- "Go Build/Test"
- "Frontend / Integration"
types:
- completed
push: push:
branches: [main] branches:
- main
jobs: 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: publish:
name: "Publish Nightly"
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps: