2024-01-03 14:33:47 +00:00
|
|
|
name: e2e
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- Makefile
|
2024-07-08 13:11:29 +00:00
|
|
|
- playwright.config.js
|
2024-01-03 14:33:47 +00:00
|
|
|
- .forgejo/workflows/e2e.yml
|
|
|
|
- tests/e2e/**
|
2024-07-08 13:11:29 +00:00
|
|
|
- web_src/js/**
|
2024-09-05 17:21:21 +00:00
|
|
|
- web_src/css/form.css
|
|
|
|
- templates/webhook/shared-settings.tmpl
|
|
|
|
- templates/org/team/new.tmpl
|
2024-01-03 14:33:47 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-e2e:
|
|
|
|
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-09-12 01:09:44 +00:00
|
|
|
image: 'code.forgejo.org/oci/playwright:latest'
|
2024-01-03 14:33:47 +00:00
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2024-10-01 10:02:16 +00:00
|
|
|
- uses: https://code.forgejo.org/actions/setup-go@v5
|
2024-01-03 14:33:47 +00:00
|
|
|
with:
|
2024-08-03 07:55:09 +00:00
|
|
|
go-version-file: "go.mod"
|
2024-01-03 14:33:47 +00:00
|
|
|
- run: |
|
|
|
|
git config --add safe.directory '*'
|
|
|
|
chown -R forgejo:forgejo .
|
|
|
|
- run: |
|
|
|
|
su forgejo -c 'make deps-frontend frontend deps-backend'
|
2024-08-25 12:52:21 +00:00
|
|
|
- run: |
|
|
|
|
su forgejo -c 'make backend'
|
2024-01-03 14:33:47 +00:00
|
|
|
- run: |
|
2024-01-08 14:58:44 +00:00
|
|
|
su forgejo -c 'make generate test-e2e-sqlite'
|
2024-01-03 14:33:47 +00:00
|
|
|
timeout-minutes: 40
|
|
|
|
env:
|
|
|
|
USE_REPO_TEST_DIR: 1
|