Skip to content
Snippets Groups Projects
Commit 16ee83db authored by Kai Oliver Meister's avatar Kai Oliver Meister :cow2:
Browse files

testing

parent 118b80ae
No related branches found
No related tags found
No related merge requests found
Pipeline #587108 passed
...@@ -82,38 +82,35 @@ build_server_image: ...@@ -82,38 +82,35 @@ build_server_image:
- docker - docker
interruptible: true interruptible: true
# this builds the frontend directly on the runner, leaving temporary artifacts
# that make testing quicker and easier
build_frontend:
stage: build
image: node:current-alpine3.21
script:
- npm install
- npm run build
- node --version
- npm list
artifacts:
paths:
- build/
- .svelte-kit/
- node_modules/
expire_in: 1 days
interruptible: true
# ========================== Testing section =========================== # # ========================== Testing section =========================== #
# this job's only task is to extract the build-files
# from the server-image
extract_frontend:
stage: testing
image: $TEST_IMAGE
<<: *build_files_cache
script:
- ls -la
- cd ..
- ls -la
- cd ..
- ls -la
- cd ..
- ls -la
- cd ..
- ls -la
- echo "Extracting Build Artifacts..."
interruptible: true
test_frontend: test_frontend:
stage: testing stage: testing
# see https://playwright.dev/docs/docker for info on this image # see https://playwright.dev/docs/docker for info on this image
image: mcr.microsoft.com/playwright:v1.51.0-noble image: mcr.microsoft.com/playwright:v1.51.0-noble
<<: *build_files_cache
needs: needs:
- extract_frontend - build_frontend
script: script:
- ls -la
- npx playwright install - npx playwright install
--with-deps --with-deps
chromium chromium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment