remove goose feathers.

This commit is contained in:
Chad Curtis 2025-04-01 05:55:56 -04:00
parent 9355ab9b17
commit 5db08619fe

View file

@ -12,13 +12,6 @@ stages:
test: test:
stage: test stage: test
timeout: 2 minutes timeout: 2 minutes
before_script:
# Install nak for test environment
- apt-get update && apt-get install -y curl build-essential
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- . "$HOME/.cargo/env" && cargo install nak
# Generate NSEC
- export DITTO_NSEC=$(nak key generate | nak encode nsec)
script: script:
- deno fmt --check - deno fmt --check
- deno task lint - deno task lint
@ -29,6 +22,7 @@ test:
services: services:
- postgres:16 - postgres:16
variables: variables:
DITTO_NSEC: nsec1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs4rm7hz
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
@ -50,19 +44,15 @@ e2e-environment:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
script: script:
- docker compose -f docker-compose.test.yml up -d - docker compose -f docker-compose.test.yml up -d --build
# Wait for Ditto to be healthy # Wait for ditto instance to become active
- | - end=$((SECONDS + 30)); while [[ $SECONDS -lt $end ]] && ! curl http://localhost:4036; do echo "Waiting for localhost:4036..."; sleep 1; echo $SECONDS ; done
until docker compose -f docker-compose.test.yml ps ditto | grep -q "healthy"; do
echo "Waiting for Ditto to be ready..."
sleep 2
done
# Generate dynamic child pipeline configuration # Generate dynamic child pipeline configuration
- | - |
cat > child-pipeline.yml << EOF cat > child-pipeline.yml << EOF
playwright-tests: playwright-tests:
trigger: trigger:
project: your-group/ditto-playwright project: soapbox-pub/ditto-playwright
strategy: depend strategy: depend
variables: variables:
BASE_URL: http://localhost:4036 BASE_URL: http://localhost:4036
@ -90,7 +80,7 @@ e2e-test:
- e2e-environment - e2e-environment
variables: variables:
BASE_URL: http://localhost:4036 BASE_URL: http://localhost:4036
after_script: # after_script:
- docker compose -f docker-compose.test.yml down -v # - docker compose -f docker-compose.test.yml down -v
only: only:
- merge_requests - merge_requests