Skip to content

Update dependency angular-oauth2-oidc to v17.0.2 #3475

Update dependency angular-oauth2-oidc to v17.0.2

Update dependency angular-oauth2-oidc to v17.0.2 #3475

name: 'Frontend tests'
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.17.1
- name: Npm install
run: npm ci
- name: Run unit tests
run: npm test
e2e:
runs-on: ubuntu-22.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.json:/opt/keycloak/data/import/realm.json \
-p 8544:8080 \
quay.io/keycloak/keycloak:23.0.1 \
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://localhost:8080/config, http://localhost:4200, http://localhost:8544'
wait-on-timeout: 120
browser: chrome
headed: true
- name: remove docker containers
run: docker ps -aq | xargs -r docker rm -f