Skip to content

Rename workflow file to match naming conventions and add setup jdk ac… #1

Rename workflow file to match naming conventions and add setup jdk ac…

Rename workflow file to match naming conventions and add setup jdk ac… #1

Workflow file for this run

on: push
jobs:
run-e2e:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'oracle'
- name: Build JAR with mvn package
run: mvn clean package
- name: Build the docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
tags: latest
load: true
push: false
outputs: type=docker,dest=/tmp/okr-docker-image.tar
- name: Load image
run: docker load --input /tmp/okr-docker-image.tar
- name: Run docker image
run: docker run --rm -v ./static:/resources -p 8080:8080 harbor.puzzle.ch/pitc-mobility-public/uni-luzern:latest &
- name: Cypress run e2e tests
uses: cypress-io/github-action@v6
with:
install: false
wait-on: 'http://localhost:8080/'
wait-on-timeout: 120
browser: chrome
headed: true
working-directory: src/test/e2e
config: baseUrl=http://localhost:8080