mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-27 22:43:15 +08:00
Run tests in CI in parallel (#1254)
* Run tests in CI in parallel * make tests automatically open/close playwright * fix parallel tests and screenshots * fix capturing screenshots for non-failing tests * cleanup * cleanup * format * log js errors * provide screenshots as artifacts * remove old scripts
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
# Example setup for OIDC with Zitadel
|
||||
export LD_ENABLE_OIDC=True
|
||||
export OIDC_USE_PKCE=True
|
||||
export OIDC_OP_AUTHORIZATION_ENDPOINT=http://localhost:8080/oauth/v2/authorize
|
||||
export OIDC_OP_TOKEN_ENDPOINT=http://localhost:8080/oauth/v2/token
|
||||
export OIDC_OP_USER_ENDPOINT=http://localhost:8080/oidc/v1/userinfo
|
||||
export OIDC_OP_JWKS_ENDPOINT=http://localhost:8080/oauth/v2/keys
|
||||
export OIDC_RP_CLIENT_ID=<client-id>
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Make sure Chromium is installed
|
||||
uv run playwright install chromium
|
||||
|
||||
# Test server loads assets from static folder, so make sure files there are up-to-date
|
||||
rm -rf static
|
||||
npm run build
|
||||
uv run manage.py collectstatic
|
||||
|
||||
# Run E2E tests
|
||||
uv run manage.py test bookmarks.tests_e2e --pattern="e2e_test_*.py"
|
||||
@@ -23,7 +23,8 @@ export LD_DB_ENGINE=postgres
|
||||
export LD_DB_USER=linkding
|
||||
export LD_DB_PASSWORD=linkding
|
||||
|
||||
./scripts/test.sh
|
||||
make test
|
||||
make e2e
|
||||
|
||||
# Remove postgres container
|
||||
docker rm -f linkding-postgres-test || true
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
uv run manage.py test bookmarks.tests
|
||||
@@ -1,2 +0,0 @@
|
||||
./scripts/test-unit.sh
|
||||
./scripts/test-e2e.sh
|
||||
Reference in New Issue
Block a user