From f1fe92fdfda850a8d475f3a55003c20e485bb998 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Fri, 29 Aug 2025 17:48:35 -0600 Subject: [PATCH] Fix Gitea workflow: Add canary job, fix triggers, use gitea context --- .gitea/workflows/ci.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 95fb11b..5fb25d3 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -2,12 +2,24 @@ name: CI Pipeline run-name: ${{ gitea.actor }} triggered CI pipeline on: + workflow_dispatch: {} # manual kick for debugging push: - branches: [main, develop, "adilallo/enhancement/TestingFramework"] + branches: + - main + - develop + - 'adilallo/enhancement/TestingFramework' # keep quotes for slash pull_request: - branches: [main, develop] + types: [opened, synchronize, reopened, ready_for_review] + branches: + - main + - develop jobs: + ping: + runs-on: [self-hosted, ubuntu-latest] + steps: + - run: echo "✅ Triggers work. Actor=${{ gitea.actor }} Ref=${{ gitea.ref }}" + test: runs-on: ubuntu-latest strategy: @@ -85,7 +97,7 @@ jobs: # Seed snapshots on main branch only (one-time setup) - name: Seed snapshots (main only) - if: github.ref == 'refs/heads/main' + if: ${{ gitea.ref == 'refs/heads/main' }} run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium env: { CI: true }