Earl Warren
9b222ac391
(cherry picked from commit 9cd0b93ad243f05e7dd17055782ac922dc91b6f0) (cherry picked from commit ef1ddf0568444f2e9ea05a0e03d7e9d89f501cef) (cherry picked from commit cd264666220a69d0159ce0ee996104ff25b4a5f2) (cherry picked from commit 22d8ed2544a385cfa8621d4db2b436c376226c56)
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: e2e
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- Makefile
|
|
- .forgejo/workflows/e2e.yml
|
|
- tests/e2e/**
|
|
|
|
jobs:
|
|
test-e2e:
|
|
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
|
|
runs-on: docker
|
|
container:
|
|
image: 'docker.io/node:20-bookworm'
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
- uses: https://code.forgejo.org/actions/setup-go@v4
|
|
with:
|
|
go-version: "~1.21"
|
|
check-latest: true
|
|
- run: |
|
|
apt-get -qq update
|
|
apt-get -qq install -q sudo
|
|
sed -i -e 's/%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers
|
|
git config --add safe.directory '*'
|
|
adduser --quiet --comment forgejo --disabled-password forgejo
|
|
adduser forgejo sudo
|
|
chown -R forgejo:forgejo .
|
|
- run: |
|
|
su forgejo -c 'make deps-frontend frontend deps-backend'
|
|
- run: |
|
|
su forgejo -c 'make generate test-e2e-sqlite'
|
|
timeout-minutes: 40
|
|
env:
|
|
DEPS_PLAYWRIGHT: 1
|
|
USE_REPO_TEST_DIR: 1
|