From d14b17e08d4b2fe3a2581931ded2cc65b0791238 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Thu, 12 Sep 2024 03:09:44 +0200 Subject: [PATCH] tests(e2e): use playwright image for dependency caching --- .forgejo/workflows/e2e.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.forgejo/workflows/e2e.yml b/.forgejo/workflows/e2e.yml index c6956560ca..9f2fbb0fa2 100644 --- a/.forgejo/workflows/e2e.yml +++ b/.forgejo/workflows/e2e.yml @@ -17,19 +17,14 @@ jobs: if: ${{ !startsWith(vars.ROLE, 'forgejo-') }} runs-on: docker container: - image: 'code.forgejo.org/oci/node:20-bookworm' + 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: | - apt-get -qq update - apt-get -qq install -q sudo git git-lfs - 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' @@ -39,5 +34,4 @@ jobs: su forgejo -c 'make generate test-e2e-sqlite' timeout-minutes: 40 env: - DEPS_PLAYWRIGHT: 1 USE_REPO_TEST_DIR: 1