Compare commits

...

3 Commits

Author SHA1 Message Date
datadunia 4d58b01641 ci: fix pipeline flow - tests→build→docs→release with fail-fast
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 1m45s
CI / build-device-agent (push) Failing after 2m29s
CI / build-dashboard (push) Successful in 1m14s
CI / build-docs (push) Has been skipped
CI / release (push) Has been skipped
2026-06-18 09:59:04 +07:00
datadunia 4e19c371d0 fix: device-agent winres.json location for go-winres
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 1m43s
CI / build-dashboard (push) Has been cancelled
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled
CI / build-device-agent (push) Has been cancelled
2026-06-18 09:55:48 +07:00
datadunia aa620dec6a fix(ci): restore swagger docs step + fix release needs (remove build-docs dependency)
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 6m18s
CI / build-device-agent (push) Failing after 2m21s
CI / release (push) Has been skipped
CI / build-dashboard (push) Successful in 1m59s
CI / build-docs (push) Has been skipped
2026-06-18 09:44:29 +07:00
3 changed files with 23 additions and 10 deletions
+10 -1
View File
@@ -35,9 +35,18 @@ jobs:
- uses: actions/cache@v3 - uses: actions/cache@v3
id: cache-build id: cache-build
with: with:
path: apps/server-core/bin path: |
apps/server-core/bin
apps/server-core/docs
key: build-server-core-${{ steps.hash-src.outputs.hash }} key: build-server-core-${{ steps.hash-src.outputs.hash }}
- name: Generate Swagger docs
if: steps.cache-build.outputs.cache-hit != 'true'
working-directory: apps/server-core
run: |
go install github.com/swaggo/swag/cmd/swag@v1.16.6
swag init -g main.go --parseDependency --parseInternal
- name: Build - name: Build
if: steps.cache-build.outputs.cache-hit != 'true' if: steps.cache-build.outputs.cache-hit != 'true'
working-directory: apps/server-core working-directory: apps/server-core
+12 -8
View File
@@ -76,40 +76,44 @@ jobs:
run: npm run build run: npm run build
# ==================================================================== # ====================================================================
# BUILD — dev/beta/release tags (skip test tags) # BUILD — after tests pass (release) or directly (dev/beta)
# ==================================================================== # ====================================================================
build-server-core: build-server-core:
if: "!contains(gitea.ref_name, 'test')" if: always() && !contains(gitea.ref_name, 'test') && !failure() && !cancelled()
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_server_core.yaml uses: ./.gitea/workflows/build_server_core.yaml
secrets: inherit secrets: inherit
build-device-agent: build-device-agent:
if: "!contains(gitea.ref_name, 'test')" if: always() && !contains(gitea.ref_name, 'test') && !failure() && !cancelled()
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_device_agent.yaml uses: ./.gitea/workflows/build_device_agent.yaml
secrets: inherit secrets: inherit
build-dashboard: build-dashboard:
if: "!contains(gitea.ref_name, 'test')" if: always() && !contains(gitea.ref_name, 'test') && !failure() && !cancelled()
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_dashboard.yaml uses: ./.gitea/workflows/build_dashboard.yaml
secrets: inherit secrets: inherit
# ==================================================================== # ====================================================================
# DOCS — release tags only (skip dev/beta/test) # DOCS — after builds pass, release tags only
# ==================================================================== # ====================================================================
build-docs: build-docs:
if: "!contains(gitea.ref_name, 'dev') && !contains(gitea.ref_name, 'beta') && !contains(gitea.ref_name, 'test')" if: always() && !contains(gitea.ref_name, 'dev') && !contains(gitea.ref_name, 'beta') && !contains(gitea.ref_name, 'test') && !failure() && !cancelled()
needs: [build-server-core, build-device-agent, build-dashboard]
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/docs_call.yaml uses: ./.gitea/workflows/docs_call.yaml
secrets: inherit secrets: inherit
# ==================================================================== # ====================================================================
# RELEASE — dev/beta/release tags (skip test) # RELEASE — after everything passes
# ==================================================================== # ====================================================================
release: release:
if: "!contains(gitea.ref_name, 'test') && !failure()" if: always() && !contains(gitea.ref_name, 'test') && !failure() && !cancelled()
needs: [build-server-core, build-device-agent, build-dashboard, build-docs] needs: [build-server-core, build-device-agent, build-dashboard, build-docs]
uses: ./.gitea/workflows/release_call.yaml uses: ./.gitea/workflows/release_call.yaml
with: with: