Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bachelorarbeit #1695

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
47 changes: 47 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Playwright Tests with Allure Reports
on:
push:
branches: [ dev]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Start Application
working-directory: ./modules/fbs-core/web
run: npm run start &
- name: Wait for services to be ready
run: sleep 30
- name: Clean previous Allure results
working-directory: ./modules/fbs-core/web
run: |
rm -rf allure-results
rm -rf allure-report
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install Allure dependencies
run: npm i -D allure-playwright
- name: Run Playwright tests with Allure
working-directory: ./modules/fbs-core/web
run: npm run test:e2e
- name: Generate Allure Report
run: |
npx allure generate allure-results --clean -o allure-report
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: allure-report
path: allure-report/
retention-days: 30
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ data/
master-runner/upload-dir/*

docker-config
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ services:
context: modules/fbs-eat/eat
restart: always
ports:
- 5000:8050
- 5001:8050
networks:
- fbs
environment:
Expand Down
7 changes: 4 additions & 3 deletions modules/fbs-core/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk18 AS BUILD
FROM gradle:jdk18 AS build

RUN mkdir /build
WORKDIR /build
Expand All @@ -14,6 +14,7 @@ COPY modules/fbs-runner/checker/*.gradle /build/modules/fbs-runner/checker/

# Build web
COPY modules/fbs-core/web /build/modules/fbs-core/web/
RUN apt-get update && apt-get install -y build-essential curl
RUN gradle fbs-core.web:installDist

# Copy math-parser
Expand All @@ -23,9 +24,9 @@ COPY modules/fbs-core/math-parser /build/modules/fbs-core/math-parser/
COPY modules/fbs-core/api /build/modules/fbs-core/api/
RUN gradle fbs-core.web:copyWebToWS fbs-core.api:installDist

FROM eclipse-temurin:18.0.2_9-jre-alpine
FROM eclipse-temurin:18-jre

RUN apk add --no-cache curl
RUN apt-get update && apt-get install -y curl

COPY --from=build /build/modules/fbs-core/api/build/install/fbs-core.api /usr/local/fbs-core.api

Expand Down
6 changes: 6 additions & 0 deletions modules/fbs-core/web/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
local: 'http://localhost:4200/',
test: 'https://fk-feedback-test.mni.thm.de/login/',
production: 'https://feedback.mni.thm.de/login/'
};

256 changes: 256 additions & 0 deletions modules/fbs-core/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading