ci: skip Playwright cache for non-GitHub environments
CI / Generate Certificates (push) Successful in 1m0s
CI / Frontend CI (push) Successful in 1m33s
CI / Backend CI (push) Successful in 1m41s
CI / E2E Tests (push) Successful in 6m17s

This commit is contained in:
ramvignesh-b
2026-05-05 01:19:32 +05:30
parent 102d76abd4
commit 3bcd4ea57f
+5 -2
View File
@@ -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