ci: skip Playwright cache for non-GitHub environments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user