mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 22:39:14 +01:00
reusable workflows?
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user