Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

reusable workflows?

Hayden858bfb5a40f5
diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml
index e763e900..86a5c0c2 100644
--- a/.github/workflows/frontend.yaml
+++ b/.github/workflows/frontend.yaml
@@ -1,10 +1,7 @@
name: Frontend / Integration
on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
+ workflow_call:
jobs:
Frontend:
diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml
index e293079a..98b140ee 100644
--- a/.github/workflows/go.yaml
+++ b/.github/workflows/go.yaml
@@ -1,10 +1,7 @@
name: Go Build/Test
on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
+ workflow_call:
jobs:
Go:
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index cfbae04c..f99f7cdb 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -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: