From 3bcd4ea57feb3d7bd5e464cf9a3e6ca406bf4ce8 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Tue, 5 May 2026 01:19:32 +0530 Subject: [PATCH] ci: skip Playwright cache for non-GitHub environments --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29f2aed..a300a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,7 @@ jobs: run: | cp ../.env.example ../.env uv sync - + if [ "$GITEA_ACTIONS" = "true" ]; then export DB_HOST="postgres" export DB_PORT="5432" @@ -106,7 +106,7 @@ jobs: export DB_HOST="127.0.0.1" export DB_PORT="5442" fi - + uv run ruff check uv run python manage.py test @@ -134,6 +134,9 @@ jobs: - name: Cache Playwright id: playwright-cache + # Disable cache when not using github actions because the runner spends about 3mins trying to upload the cache + # TODO: setup cache server in Gitea + if: ${{ github.server_url == 'https://github.com' }} uses: actions/cache@v3 with: path: ~/.cache/ms-playwright