Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grady Corp.
grady
Commits
16ee83db
Commit
16ee83db
authored
1 month ago
by
Kai Oliver Meister
Browse files
Options
Downloads
Patches
Plain Diff
testing
parent
118b80ae
No related branches found
No related tags found
No related merge requests found
Pipeline
#587108
passed
1 month ago
Stage: build
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-21
18 additions, 21 deletions
.gitlab-ci.yml
with
18 additions
and
21 deletions
.gitlab-ci.yml
+
18
−
21
View file @
16ee83db
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment