Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
Fix e2e test (#25)
Browse files Browse the repository at this point in the history
* Fix e2e test

* add gh actions

* fix volume

* add volumes

* remove import

* change keycloak image

* remove keycloak admin cli action

* fix

* healthcheck to db

* change postgresql version

* chnage env

* set specific version of postgres

* health keycloak

* add health to backend
  • Loading branch information
carlosthe19916 authored Jan 3, 2021
1 parent 8dcdeb9 commit 8f36fff
Showing 1 changed file with 42 additions and 12 deletions.
54 changes: 42 additions & 12 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,57 @@ jobs:
os: [ubuntu-latest]
browser: [chrome, firefox]
services:
backend:
image: quay.io/projectopenubl/xsender-server:master
ports:
- 8080:8080
keycloak:
image: quay.io/keycloak/keycloak:12.0.1
image: quay.io/projectopenubl/openubl-keycloak-theme:latest
ports:
- 8180:8080
env:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
options: >-
--health-cmd "curl --fail http://localhost:8080/auth || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
backend-db:
image: postgres:13.1
ports:
- 5432:5432
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: xsender_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
backend:
image: quay.io/projectopenubl/xsender-server:master
ports:
- 8080:8080
env:
QUARKUS_DATASOURCE_USERNAME: user
QUARKUS_DATASOURCE_PASSWORD: password
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://backend-db:5432/xsender_db
QUARKUS_OIDC_AUTH_SERVER_URL: http://keycloak:8080/auth/realms/openubl
QUARKUS_OIDC_CLIENT_ID: xsender
QUARKUS_OIDC_CREDENTIALS_SECRET: secret
options: >-
--health-cmd "curl --fail http://localhost:8080 || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Keycloak Admin CLI
uses: carlosthe19916/keycloak-action@master
with:
server: http://keycloak:8080/auth
username: admin
password: admin
cmd: create realms -f openubl-realm.json
# - name: Keycloak Admin CLI
# uses: carlosthe19916/keycloak-action@master
# with:
# server: http://keycloak:8080/auth
# username: admin
# password: admin
# cmd: create realms -f openubl-realm.json
- run: yarn install
- run: yarn build:instrumentation
- uses: haya14busa/action-cond@v1
Expand Down

0 comments on commit 8f36fff

Please sign in to comment.