mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-21 06:16:31 +00:00
reusable workflows?
This commit is contained in:
parent
ab376134b9
commit
858bfb5a40
3 changed files with 17 additions and 15 deletions
5
.github/workflows/frontend.yaml
vendored
5
.github/workflows/frontend.yaml
vendored
|
@ -1,10 +1,7 @@
|
|||
name: Frontend / Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
Frontend:
|
||||
|
|
5
.github/workflows/go.yaml
vendored
5
.github/workflows/go.yaml
vendored
|
@ -1,10 +1,7 @@
|
|||
name: Go Build/Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
Go:
|
||||
|
|
22
.github/workflows/publish.yaml
vendored
22
.github/workflows/publish.yaml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue