mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
78f69040fc
When the CI vars.ROLE is forgejo-coding, it is assumed to be the
repository where collaborative coding happens,
i.e. https://codeberg.org/forgejo/forgejo
When the CI vars.ROLE is forgejo-testing, it is assumed that only codebase
testing is to be run and no other tests such as release build
integration, label constraints, backporting etc.
(cherry picked from commit 068558accd
)
Conflicts:
.forgejo/workflows/testing.yml
was in .forgejo/workflows/e2e.yml
37 lines
1,014 B
YAML
37 lines
1,014 B
YAML
name: e2e
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- Makefile
|
|
- playwright.config.js
|
|
- .forgejo/workflows/e2e.yml
|
|
- tests/e2e/**
|
|
- web_src/js/**
|
|
- web_src/css/form.css
|
|
- templates/webhook/shared-settings.tmpl
|
|
- templates/org/team/new.tmpl
|
|
|
|
jobs:
|
|
test-e2e:
|
|
if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing'
|
|
runs-on: docker
|
|
container:
|
|
image: 'code.forgejo.org/oci/playwright:latest'
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
|
with:
|
|
go-version-file: "go.mod"
|
|
- run: |
|
|
git config --add safe.directory '*'
|
|
chown -R forgejo:forgejo .
|
|
- run: |
|
|
su forgejo -c 'make deps-frontend frontend deps-backend'
|
|
- run: |
|
|
su forgejo -c 'make backend'
|
|
- run: |
|
|
su forgejo -c 'make generate test-e2e-sqlite'
|
|
timeout-minutes: 40
|
|
env:
|
|
USE_REPO_TEST_DIR: 1
|