-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba55c32
commit 7335a5c
Showing
1 changed file
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,52 +22,52 @@ jobs: | |
- name: Run unit tests | ||
run: npm test | ||
|
||
e2e: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- uses: abhi1693/[email protected] | ||
with: | ||
browser: chrome | ||
version: latest | ||
|
||
- name: run keycloak docker | ||
run: | | ||
docker run -d \ | ||
--name my_keycloak \ | ||
-e KEYCLOAK_ADMIN=admin \ | ||
-e KEYCLOAK_ADMIN_PASSWORD=keycloak \ | ||
-v ./docker/config/realm-export-pitc.json:/opt/keycloak/data/import/realm-pitc.json \ | ||
-p 8544:8080 \ | ||
quay.io/keycloak/keycloak:24.0.2 \ | ||
start-dev --import-realm | ||
- name: start backend | ||
run: cd ./backend && mvn spring-boot:run -Dspring-boot.run.profiles=integration-test & | ||
|
||
- name: Cypress run e2e tests | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
working-directory: frontend | ||
start: npm start | ||
wait-on: 'http://pitc.okr.localhost:8080/config, http://pitc.okr.localhost:4200, http://localhost:8544' | ||
wait-on-timeout: 120 | ||
browser: chrome | ||
headed: true | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: cypress-screenshots | ||
path: frontend/cypress/screenshots | ||
|
||
- name: remove docker containers | ||
run: docker ps -aq | xargs -r docker rm -f | ||
# e2e: | ||
# runs-on: ubuntu-24.04 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Set up JDK 17 | ||
# uses: actions/setup-java@v4 | ||
# with: | ||
# java-version: '17' | ||
# distribution: 'adopt' | ||
# | ||
# - uses: abhi1693/[email protected] | ||
# with: | ||
# browser: chrome | ||
# version: latest | ||
# | ||
# - name: run keycloak docker | ||
# run: | | ||
# docker run -d \ | ||
# --name my_keycloak \ | ||
# -e KEYCLOAK_ADMIN=admin \ | ||
# -e KEYCLOAK_ADMIN_PASSWORD=keycloak \ | ||
# -v ./docker/config/realm-export-pitc.json:/opt/keycloak/data/import/realm-pitc.json \ | ||
# -p 8544:8080 \ | ||
# quay.io/keycloak/keycloak:24.0.2 \ | ||
# start-dev --import-realm | ||
# | ||
# - name: start backend | ||
# run: cd ./backend && mvn spring-boot:run -Dspring-boot.run.profiles=integration-test & | ||
# | ||
# - name: Cypress run e2e tests | ||
# uses: cypress-io/github-action@v6 | ||
# with: | ||
# working-directory: frontend | ||
# start: npm start | ||
# wait-on: 'http://pitc.okr.localhost:8080/config, http://pitc.okr.localhost:4200, http://localhost:8544' | ||
# wait-on-timeout: 120 | ||
# browser: chrome | ||
# headed: true | ||
# | ||
# - uses: actions/upload-artifact@v4 | ||
# if: always() | ||
# with: | ||
# name: cypress-screenshots | ||
# path: frontend/cypress/screenshots | ||
# | ||
# - name: remove docker containers | ||
# run: docker ps -aq | xargs -r docker rm -f |