-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(adapters): cleanup extraneous documentation in adapter and fix …
…testing and release GHA (#10854)
- Loading branch information
Showing
31 changed files
with
102 additions
and
2,656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3" | ||
|
||
services: | ||
authjs-docker-test: | ||
environment: | ||
- TEST_KEYCLOAK_USERNAME | ||
- TEST_KEYCLOAK_PASSWORD | ||
- AUTH_KEYCLOAK_ID | ||
- AUTH_KEYCLOAK_SECRET | ||
- AUTH_KEYCLOAK_ISSUER | ||
- AUTH_SECRET="MohY0/2zSQw/psWEnejC2ka3Al0oifvY4YjOkUaFfnI=" | ||
- AUTH_URL=http://localhost:3000/auth | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "3000:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Easier to read `docker-compose up` output | ||
# export BUILDKIT_PROGRESS=plain | ||
|
||
args=("-f" "docker-compose.yml") | ||
if [[ -z "${CI}" ]]; then | ||
args+=("--env-file" ".env") | ||
fi | ||
args+=("up" "--detach" "--build") | ||
|
||
echo "Running: docker-compose ${args[*]}" | ||
|
||
if ! docker-compose "${args[@]}"; then | ||
echo "Failed to start container" | ||
exit 1 | ||
fi | ||
|
||
echo "waiting 10 seconds for container to start..." | ||
sleep 10 | ||
|
||
# Used to control which env vars to load in the playwright process | ||
export TEST_DOCKER=1 | ||
|
||
# Always stop container, but exit with 1 when tests are failing | ||
if playwright test -c ../../../packages/utils/playwright.config.ts; then | ||
docker-compose down | ||
else | ||
docker-compose down && exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.