Fix Gitea workflow: Add canary job, fix triggers, use gitea context
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user