Files
MokoGitea/.github-old/workflows/pull-e2e-tests.yml
T
Jonathan Miller dd531d4a76 feat: reorganize Go source into src/ with go.work workspace
Move all Go packages (cmd/, models/, modules/, routers/, services/,
tests/, build/, tools/) and go.mod/go.sum into src/ directory.

- Add go.work at root pointing to src/ module
- Update Makefile GO_DIRS, BINDATA, GENERATED paths
- Update Dockerfile and Dockerfile.rootless for src/ layout
- Update .air.toml watch paths
- Add .mokogitea support to issue/PR template discovery
- Add .mokogitea to file icon rules
- Reformat .mokogitea/workflows headers for ecosystem
- Strip upstream GitHub links from workflows

Zero import changes — all code.gitea.io/gitea/* imports resolve
via go.work workspace indirection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 20:29:15 -05:00

51 lines
1.4 KiB
YAML

name: e2e-tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
files-changed:
uses: ./.github/workflows/files-changed.yml
test-e2e:
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.e2e == 'true'
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
check-latest: true
cache: false
- uses: ./.github/actions/go-cache
with:
cache-name: e2e
build-cache: "false"
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: make deps-frontend
- run: make frontend
- run: make deps-backend
- run: make backend
env:
TAGS: bindata
- run: make playwright
- run: make test-e2e
timeout-minutes: 10
env:
TAGS: bindata
FORCE_COLOR: 1
GITEA_TEST_E2E_DEBUG: 1