Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Calculator_VueJS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
MUNIER Florian
Calculator_VueJS
Commits
7936ac1e
Commit
7936ac1e
authored
2 years ago
by
MUNIER Florian
Browse files
Options
Downloads
Patches
Plain Diff
[add] gitlab-cy_file
parent
56ea610d
No related branches found
No related tags found
No related merge requests found
Pipeline
#5786
passed
2 years ago
Stage: build
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+61
-0
61 additions, 0 deletions
.gitlab-ci.yml
package.json
+1
-0
1 addition, 0 deletions
package.json
with
62 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
61
−
0
View file @
7936ac1e
image
:
node:16
stages
:
-
build
-
test
-
deploy
install
:
stage
:
build
script
:
-
npm ci
artifacts
:
paths
:
-
node_modules
build
:
stage
:
build
script
:
-
npm run build
artifacts
:
paths
:
-
dist
needs
:
-
job
:
install
artifacts
:
true
lint
:
stage
:
test
script
:
-
npm run lint
needs
:
-
job
:
install
artifacts
:
true
.cypress
:
image
:
cypress/base:16
stage
:
test
artifacts
:
when
:
always
paths
:
-
cypress/videos/**/*.mp4
-
cypress/screenshots/**/*.png
expire_in
:
1 day
e2e_tests
:
extends
:
.cypress
script
:
-
npx cypress install
-
npm run test:e2e
needs
:
-
job
:
build
artifacts
:
true
-
job
:
install
artifacts
:
true
deploy
:
stage
:
deploy
script
:
-
npm run deploy -- --token $SURGE_TOKEN
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
This diff is collapsed.
Click to expand it.
package.json
+
1
−
0
View file @
7936ac1e
...
...
@@ -10,6 +10,7 @@
"test:e2e:dev"
:
"start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'"
,
"build-only"
:
"vite build"
,
"type-check"
:
"vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
,
"deploy"
:
"surge dist/ my_calculator.surge.sh"
,
"lint"
:
"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies"
:
{
...
...
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