ci: test always runs, test tags skip build/release
CI / server-core-test (push) Failing after 24s
CI / device-agent-test (push) Failing after 20s
CI / dashboard-test (push) Failing after 23s
CI / build-server-core (push) Has been skipped
CI / build-device-agent (push) Has been skipped
CI / build-dashboard (push) Has been skipped
CI / build-docs (push) Has been skipped
CI / release (push) Has been skipped

This commit is contained in:
datadunia
2026-06-10 03:47:00 +07:00
parent 3133671c02
commit 56d70ed031
+10 -13
View File
@@ -9,11 +9,7 @@ on:
- 'v[0-9]*.[0-9]*.[0-9]' - 'v[0-9]*.[0-9]*.[0-9]'
jobs: jobs:
# ──────────────────────────────────────────────
# TEST — only for tags with "test" in name
# ──────────────────────────────────────────────
server-core-test: server-core-test:
if: contains(gitea.ref_name, 'test')
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
run: run:
@@ -30,7 +26,6 @@ jobs:
run: go test ./... -tags dev -cover run: go test ./... -tags dev -cover
device-agent-test: device-agent-test:
if: contains(gitea.ref_name, 'test')
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
run: run:
@@ -47,7 +42,6 @@ jobs:
run: go test ./... -cover run: go test ./... -cover
dashboard-test: dashboard-test:
if: contains(gitea.ref_name, 'test')
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
run: run:
@@ -65,31 +59,34 @@ jobs:
- name: Build - name: Build
run: npm run build run: npm run build
# ──────────────────────────────────────────────
# BUILD — all tags, parallel per component
# ──────────────────────────────────────────────
build-server-core: build-server-core:
if: "!contains(gitea.ref_name, 'test')"
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
build-device-agent: build-device-agent:
if: "!contains(gitea.ref_name, 'test')"
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
build-dashboard: build-dashboard:
if: "!contains(gitea.ref_name, 'test')"
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
build-docs: build-docs:
if: "!contains(gitea.ref_name, 'test')"
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/docs_call.yaml uses: ./.gitea/workflows/docs_call.yaml
# ──────────────────────────────────────────────
# RELEASE — after all builds complete
# ──────────────────────────────────────────────
release: release:
if: "!contains(gitea.ref_name, 'test')"
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:
prerelease: ${{ contains(gitea.ref_name, 'dev-') || contains(gitea.ref_name, 'beta') || contains(gitea.ref_name, 'test') }} prerelease: ${{ contains(gitea.ref_name, 'dev-') || contains(gitea.ref_name, 'beta') }}
secrets: inherit secrets: inherit