Fix Gitea workflow: Add canary job, fix triggers, use gitea context

This commit is contained in:
adilallo
2025-08-29 17:48:35 -06:00
parent dd69370e01
commit f1fe92fdfd
+15 -3
View File
@@ -2,12 +2,24 @@ name: CI Pipeline
run-name: ${{ gitea.actor }} triggered CI pipeline run-name: ${{ gitea.actor }} triggered CI pipeline
on: on:
workflow_dispatch: {} # manual kick for debugging
push: push:
branches: [main, develop, "adilallo/enhancement/TestingFramework"] branches:
- main
- develop
- 'adilallo/enhancement/TestingFramework' # keep quotes for slash
pull_request: pull_request:
branches: [main, develop] types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
- develop
jobs: jobs:
ping:
runs-on: [self-hosted, ubuntu-latest]
steps:
- run: echo "✅ Triggers work. Actor=${{ gitea.actor }} Ref=${{ gitea.ref }}"
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@@ -85,7 +97,7 @@ jobs:
# Seed snapshots on main branch only (one-time setup) # Seed snapshots on main branch only (one-time setup)
- name: Seed snapshots (main only) - 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 run: PLAYWRIGHT_UPDATE_SNAPSHOTS=1 npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium
env: { CI: true } env: { CI: true }