mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-19 05:26: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
|
name: Frontend / Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Frontend:
|
Frontend:
|
||||||
|
|
5
.github/workflows/go.yaml
vendored
5
.github/workflows/go.yaml
vendored
|
@ -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:
|
||||||
|
|
22
.github/workflows/publish.yaml
vendored
22
.github/workflows/publish.yaml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue