2024-01-03 20:03:47 +05:30
|
|
|
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:
|
2024-03-25 11:22:23 +05:30
|
|
|
go-version: "1.22"
|
2024-03-06 09:44:34 +05:30
|
|
|
check-latest: true
|
2024-01-03 20:03:47 +05:30
|
|
|
- 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: |
|
2024-01-08 20:28:44 +05:30
|
|
|
su forgejo -c 'make generate test-e2e-sqlite'
|
2024-01-03 20:03:47 +05:30
|
|
|
timeout-minutes: 40
|
|
|
|
env:
|
|
|
|
DEPS_PLAYWRIGHT: 1
|
|
|
|
USE_REPO_TEST_DIR: 1
|