Skip to content

Commit

Permalink
Another test
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 15, 2023
1 parent 10459f0 commit f8322d8
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
README.md

# Wrappers
# Wrappers
**/ClientOptions.java

# Client files
Expand All @@ -11,5 +11,8 @@ src/main/java/com/squidex/api/*.*
.github/workflows/ci.yml
.github/workflows/test.yml

#tests
# Tests
src/test/

# Docker Compose
tests
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:

- name: Test
run: ./gradlew test
env:
CONFIG__WAIT: 60
CONFIG__SERVER__URL: http://localhost:8080
working-directory: .

- name: Test - Dump docker logs on failure
if: failure()
Expand Down
58 changes: 58 additions & 0 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: '3'
services:
mongo:
image: mongo:latest
ports:
- "27019:27017"
networks:
- internal

squidex1:
image: squidex/squidex:7
environment:
- URLS__BASEURL=http://localhost:8080
- ASSETS__RESIZERURL=http://resizer
- EVENTSTORE__MONGODB__CONFIGURATION=mongodb://mongo
- EVENTSTORE__MONGODB__DATABASE=squidex1
- GRAPHQL__CACHEDURATION=0
- IDENTITY__ADMINCLIENTID=root
- IDENTITY__ADMINCLIENTSECRET=xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0=
- IDENTITY__MULTIPLEDOMAINS=true
- RULES__RULESCACHEDURATION=00:00:00
- SCRIPTING__TIMEOUTEXECUTION=00:00:10
- SCRIPTING__TIMEOUTSCRIPT=00:00:10
- STORE__MONGODB__CONFIGURATION=mongodb://mongo
- STORE__MONGODB__DATABASE=squidex1
- STORE__MONGODB__CONTENTDATABASE=squidex1_content
- STORE__TYPE=MongoDB
- TEMPLATES__LOCALURL=http://localhost:5000
- ASPNETCORE_URLS=http://+:5000
networks:
- internal
depends_on:
- mongo

resizer:
image: squidex/resizer:dev-40
networks:
- internal
depends_on:
- mongo

squidex_proxy1:
image: squidex/caddy-proxy:2.6.2
ports:
- "8080:8080"
environment:
- SITE_ADDRESS=http://localhost:8080
- SITE_PATH=*
- SITE_SERVER="squidex1:5000"
depends_on:
- squidex1
networks:
- internal
restart: unless-stopped

networks:
internal:
driver: bridge

0 comments on commit f8322d8

Please sign in to comment.