From 2982ec9201e558929a63e77f5932275b0d8b1ddf Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Sat, 7 Oct 2023 14:30:51 +0900 Subject: [PATCH] add back testing for hsqldb --- .github/workflows/docker-build-test.yml | 1 + testing/config.hsqldb.properties | 18 ++++++++++++++++++ testing/docker-compose.hsqldb.yml | 8 ++++++++ 3 files changed, 27 insertions(+) create mode 100644 testing/config.hsqldb.properties create mode 100644 testing/docker-compose.hsqldb.yml diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index 26423c4..7772b4c 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -19,6 +19,7 @@ jobs: matrix: docker-compose-file: - docker-compose.yml + - testing/docker-compose.hsqldb.yml - testing/docker-compose.cockroachdb.yml - testing/docker-compose.yugabytedb.yml dockerfile: diff --git a/testing/config.hsqldb.properties b/testing/config.hsqldb.properties new file mode 100644 index 0000000..c366fc9 --- /dev/null +++ b/testing/config.hsqldb.properties @@ -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.video + +# Hibernate properties +hibernate.connection.url: jdbc:hsqldb:mem:memdb;sql.syntax_pgs=true +hibernate.connection.driver_class: org.hsqldb.jdbcDriver +hibernate.dialect: org.hibernate.dialect.HSQLDialect +hibernate.connection.username: piped +hibernate.connection.password: changeme \ No newline at end of file diff --git a/testing/docker-compose.hsqldb.yml b/testing/docker-compose.hsqldb.yml new file mode 100644 index 0000000..f60ec09 --- /dev/null +++ b/testing/docker-compose.hsqldb.yml @@ -0,0 +1,8 @@ +services: + piped: + image: 1337kavin/piped:latest + restart: unless-stopped + ports: + - "127.0.0.1:8080:8080" + volumes: + - ./config.hsqldb.properties:/app/config.properties \ No newline at end of file