fix(ci): rewrite ci.yaml with correct Gitea Actions syntax
This commit is contained in:
1 parent
08ff14d0ac
commit
6e82a02e64
2 files changed
-34
No files matched your search
@@ -8,19 +8,10 @@ on:
|
|||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Reuse the Playwright browsers that ship with the host runner (snapped to
|
|
||||||
# the root HOME cache instead of a fresh per-job HOME) so `playwright install`
|
|
||||||
# is a near-instant no-op instead of a ~100s CDN download on every run.
|
|
||||||
env:
|
env:
|
||||||
PLAYWRIGHT_BROWSERS_PATH: /opt/ms-playwright
|
PLAYWRIGHT_BROWSERS_PATH: /opt/ms-playwright
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
# Fast quality gate: toolchain, install, dependabot audit,
|
|
||||||
# lint, i18n contracts & typecheck. No heavy test suites here.
|
|
||||||
# Draait op de host (self-hosted) waar Node 26 + pnpm 11
|
|
||||||
# geïnstalleerd zijn en internet beschikbaar is.
|
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
check:
|
check:
|
||||||
runs-on: []
|
runs-on: []
|
||||||
steps:
|
steps:
|
||||||
@@ -33,9 +24,6 @@ jobs:
|
|||||||
- name: Toolchain check
|
- name: Toolchain check
|
||||||
run: node scripts/check-node-toolchain.mjs
|
run: node scripts/check-node-toolchain.mjs
|
||||||
|
|
||||||
# Port selection decides which blue/green slot stays live. Getting it
|
|
||||||
# wrong starts the candidate on an occupied port, so the regression that
|
|
||||||
# caused a failed deploy is covered here, before any image is built.
|
|
||||||
- name: Deploy port-selection tests
|
- name: Deploy port-selection tests
|
||||||
run: bash scripts/ci-deploy-ports.test.sh
|
run: bash scripts/ci-deploy-ports.test.sh
|
||||||
|
|
||||||
@@ -54,11 +42,6 @@ jobs:
|
|||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
# Test suites. Parallel jobs (host runner capacity >= 3) so unit,
|
|
||||||
# integration and UI tests each get a worker instead of running
|
|
||||||
# back-to-back inside the check job (~2min wall-time saving).
|
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
tests-unit:
|
tests-unit:
|
||||||
needs: check
|
needs: check
|
||||||
runs-on: []
|
runs-on: []
|
||||||
@@ -116,7 +99,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Compare against reviewed Linux references; updates are explicit.
|
|
||||||
- name: Install UI test browser
|
- name: Install UI test browser
|
||||||
run: pnpm exec playwright install chromium
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
@@ -134,7 +116,6 @@ jobs:
|
|||||||
test-results/ui/
|
test-results/ui/
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
# Validate branch/PR Docker images before integration into a deployment branch.
|
|
||||||
preflight:
|
preflight:
|
||||||
needs: [tests-unit, tests-integration, tests-ui]
|
needs: [tests-unit, tests-integration, tests-ui]
|
||||||
if: gitea.event_name == 'pull_request' || (gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/heads/codex/'))
|
if: gitea.event_name == 'pull_request' || (gitea.event_name == 'push' && startsWith(gitea.ref, 'refs/heads/codex/'))
|
||||||
@@ -164,11 +145,6 @@ jobs:
|
|||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
# Docker build & deploy
|
|
||||||
# Draait op de host (self-hosted) zodat Docker
|
|
||||||
# toegang heeft tot de daemon en volumes.
|
|
||||||
# ─────────────────────────────────────────────
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [tests-unit, tests-integration, tests-ui]
|
needs: [tests-unit, tests-integration, tests-ui]
|
||||||
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
if: gitea.event_name == 'push' && (gitea.ref_name == 'main' || gitea.ref_name == 'master')
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
name: Test Runner
|
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
hello:
|
|
||||||
runs-on: []
|
|
||||||
steps:
|
|
||||||
- name: Hallo wereld
|
|
||||||
run: echo "De Gitea runner werkt perfect!"
|
|
||||||
Reference in new issue
Block a user