Attempt to test h2 with docker-compose.

This commit is contained in:
FireMaskterK 2021-11-18 09:12:21 +00:00 committed by Andrea Spacca
parent b2a0d4d0e0
commit 6ee93ee854
4 changed files with 33 additions and 2 deletions

View file

@ -9,6 +9,11 @@ on:
jobs: jobs:
build-hotspot-test: build-hotspot-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
docker-compose-file:
- docker-compose.yml
- testing/docker-compose.h2.yml
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
with: with:
@ -16,6 +21,6 @@ jobs:
- name: Build Locally - name: Build Locally
run: docker build . -t 1337kavin/piped:latest run: docker build . -t 1337kavin/piped:latest
- name: Start Docker-Compose services - name: Start Docker-Compose services
run: docker-compose up -d && sleep 5 run: docker-compose -f ${{ matrix.docker-compose-file }} up -d && sleep 5
- name: Run tests - name: Run tests
run: ./api-test.sh run: ./testing/api-test.sh

View file

@ -0,0 +1,18 @@
# The port to Listen on.
PORT: 8080
# Proxy
PROXY_PART: https://pipedproxy-ams.kavin.rocks
# Public API URL
API_URL: https://pipedapi.kavin.rocks
# Public Frontend URL
FRONTEND_URL: https://piped.kavin.rocks
# Hibernate properties
hibernate.connection.url: jdbc:h2:mem:test
hibernate.connection.driver_class: org.h2.Driver
hibernate.dialect: org.hibernate.dialect.H2Dialect
hibernate.connection.username: piped
hibernate.connection.password: changeme

View file

@ -0,0 +1,8 @@
services:
piped:
image: 1337kavin/piped:latest
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./config.h2.properties:/app/config.properties