mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-02 08:32:49 +00:00
1. stabilize flaky e2e test from
2f5b5a9e9c
2. increase ci timeout factor to 4 as 3 was not enough
3. add a `e2e` category to files-changed so e2e-test-only changes
trigger ci
---
This PR was written with the help of Claude Opus 4.7
---------
Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
118 lines
3.2 KiB
YAML
118 lines
3.2 KiB
YAML
name: files-changed
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
backend:
|
|
value: ${{ jobs.detect.outputs.backend }}
|
|
frontend:
|
|
value: ${{ jobs.detect.outputs.frontend }}
|
|
docs:
|
|
value: ${{ jobs.detect.outputs.docs }}
|
|
actions:
|
|
value: ${{ jobs.detect.outputs.actions }}
|
|
templates:
|
|
value: ${{ jobs.detect.outputs.templates }}
|
|
docker:
|
|
value: ${{ jobs.detect.outputs.docker }}
|
|
swagger:
|
|
value: ${{ jobs.detect.outputs.swagger }}
|
|
yaml:
|
|
value: ${{ jobs.detect.outputs.yaml }}
|
|
json:
|
|
value: ${{ jobs.detect.outputs.json }}
|
|
e2e:
|
|
value: ${{ jobs.detect.outputs.e2e }}
|
|
|
|
jobs:
|
|
detect:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 3
|
|
permissions:
|
|
contents: read
|
|
outputs:
|
|
backend: ${{ steps.changes.outputs.backend }}
|
|
frontend: ${{ steps.changes.outputs.frontend }}
|
|
docs: ${{ steps.changes.outputs.docs }}
|
|
actions: ${{ steps.changes.outputs.actions }}
|
|
templates: ${{ steps.changes.outputs.templates }}
|
|
docker: ${{ steps.changes.outputs.docker }}
|
|
swagger: ${{ steps.changes.outputs.swagger }}
|
|
yaml: ${{ steps.changes.outputs.yaml }}
|
|
json: ${{ steps.changes.outputs.json }}
|
|
e2e: ${{ steps.changes.outputs.e2e }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dorny/paths-filter@v4
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
backend:
|
|
- "**/*.go"
|
|
- "templates/**/*.tmpl"
|
|
- "assets/emoji.json"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "Makefile"
|
|
- ".golangci.yml"
|
|
- ".editorconfig"
|
|
- "options/locale/locale_en-US.json"
|
|
|
|
frontend:
|
|
- "*.js"
|
|
- "*.ts"
|
|
- "web_src/**"
|
|
- "tools/*.js"
|
|
- "tools/*.ts"
|
|
- "assets/emoji.json"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- "Makefile"
|
|
- ".eslintrc.cjs"
|
|
- ".npmrc"
|
|
|
|
docs:
|
|
- "**/*.md"
|
|
- ".markdownlint.yaml"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
|
|
actions:
|
|
- ".github/workflows/*"
|
|
- "Makefile"
|
|
|
|
templates:
|
|
- "tools/lint-templates-*.js"
|
|
- "templates/**/*.tmpl"
|
|
- "pyproject.toml"
|
|
- "uv.lock"
|
|
|
|
docker:
|
|
- ".github/workflows/pull-docker-dryrun.yml"
|
|
- "Dockerfile"
|
|
- "Dockerfile.rootless"
|
|
- "docker/**"
|
|
- "Makefile"
|
|
|
|
swagger:
|
|
- "templates/swagger/v1_json.tmpl"
|
|
- "templates/swagger/v1_input.json"
|
|
- "Makefile"
|
|
- "package.json"
|
|
- "pnpm-lock.yaml"
|
|
- ".spectral.yaml"
|
|
|
|
yaml:
|
|
- "**/*.yml"
|
|
- "**/*.yaml"
|
|
- ".yamllint.yaml"
|
|
- "pyproject.toml"
|
|
|
|
json:
|
|
- "**/*.json"
|
|
|
|
e2e:
|
|
- "tests/e2e/**"
|
|
- "tools/test-e2e.sh"
|
|
- "playwright.config.ts"
|