Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-playground
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Artur Carvalho
vue-playground
Commits
92294b13
Commit
92294b13
authored
2 years ago
by
Artur Carvalho
Browse files
Options
Downloads
Patches
Plain Diff
Add ci initial configuration
parent
e0afaebc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Add initial libraries
Pipeline
#67665
failed
2 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+22
-0
22 additions, 0 deletions
.gitlab-ci.yml
e2e/vue.spec.ts
+1
-1
1 addition, 1 deletion
e2e/vue.spec.ts
playwright.config.ts
+1
-1
1 addition, 1 deletion
playwright.config.ts
with
24 additions
and
2 deletions
.gitlab-ci.yml
0 → 100644
+
22
−
0
View file @
92294b13
stages
:
-
build
-
test
build app
:
stage
:
build
image
:
node:16-alpine
script
:
-
npm ci
-
npm run build
-
echo "ENV URL $CI_ENVIRONMENT_URL"
artifacts
:
paths
:
-
build
unit tests
:
stage
:
test
image
:
node:16-alpine
script
:
-
npm ci
-
npm run test
This diff is collapsed.
Click to expand it.
e2e/vue.spec.ts
+
1
−
1
View file @
92294b13
...
...
@@ -4,5 +4,5 @@ import { test, expect } from "@playwright/test";
// https://playwright.dev/docs/intro
test
(
"
visits the app root url
"
,
async
({
page
})
=>
{
await
page
.
goto
(
"
/
"
);
await
expect
(
page
.
locator
(
"
div.greetings > h1
"
)).
toHaveText
(
"
You did it!
"
);
await
expect
(
page
.
locator
(
"
#app > div > main
"
)).
toHaveText
(
"
This is a Vvue playground.
"
);
});
This diff is collapsed.
Click to expand it.
playwright.config.ts
+
1
−
1
View file @
92294b13
...
...
@@ -34,7 +34,7 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout
:
0
,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL
:
"
http://localhost:5173
"
,
baseURL
:
process
.
env
.
CI_ENVIRONMENT_URL
||
"
http://localhost:5173
"
,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace
:
"
on-first-retry
"
,
...
...
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