Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

👷 Run docker build smoke test in CI (#2180)

Luke Vella4b8b5682cf0e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 446bfa734..353fe5d5f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,7 +61,22 @@ jobs:
- name: Run tests
run: pnpm test:unit
- # Label of the container job
+ docker-smoke-test:
+ name: Docker smoke test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Start services
+ run: |
+ SECRET_PASSWORD=test-secret \
+ NEXT_PUBLIC_BASE_URL=http://localhost:3000 \
+ docker compose up -d --build --wait --wait-timeout 60
+
+ - name: Show logs on failure
+ if: failure()
+ run: docker compose logs
+
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
diff --git a/docker-compose.yml b/docker-compose.yml
index 6238cf953..be5f62202 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -30,7 +30,8 @@ services:
environment:
- DATABASE_URL=postgres://postgres:postgres@rallly_db/rallly
env_file:
- - .env
+ - path: .env
+ required: false
volumes:
db-data: