mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Attempt to test h2 with docker-compose.
This commit is contained in:
parent
b2a0d4d0e0
commit
6ee93ee854
4 changed files with 33 additions and 2 deletions
9
.github/workflows/docker-build-test.yml
vendored
9
.github/workflows/docker-build-test.yml
vendored
|
@ -9,6 +9,11 @@ on:
|
|||
jobs:
|
||||
build-hotspot-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
docker-compose-file:
|
||||
- docker-compose.yml
|
||||
- testing/docker-compose.h2.yml
|
||||
steps:
|
||||
- uses: actions/checkout@v2.4.0
|
||||
with:
|
||||
|
@ -16,6 +21,6 @@ jobs:
|
|||
- name: Build Locally
|
||||
run: docker build . -t 1337kavin/piped:latest
|
||||
- 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
|
||||
run: ./api-test.sh
|
||||
run: ./testing/api-test.sh
|
||||
|
|
18
testing/config.h2.properties
Normal file
18
testing/config.h2.properties
Normal 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
|
8
testing/docker-compose.h2.yml
Normal file
8
testing/docker-compose.h2.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue