Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlabdemo
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Coalson, Ben
gitlabdemo
Commits
9eaeacc8
Commit
9eaeacc8
authored
11 months ago
by
Ross Cain
Browse files
Options
Downloads
Patches
Plain Diff
Add code quality and run jobs
parent
c21c36a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
with
17 additions
and
0 deletions
.gitlab-ci.yml
+
17
−
0
View file @
9eaeacc8
stages
:
-
build
-
test
-
run
# NEW!!!
image
:
node:17
...
...
@@ -23,3 +24,19 @@ unit_test:
-
./node_modules/mocha/bin/_mocha "test/*.js" --reporter mocha-simple-html-reporter --reporter-options output=./testresults/test-results.html
after_script
:
-
echo "unit_test job has run!"
code_quality
:
# NEW!!!
stage
:
test
script
:
-
echo "This will run code quality in the future"
### This job can run independently of any previous job completion, i.e. build job, in order to execute
needs
:
[]
run_app
:
# NEW!!!
stage
:
run
script
:
-
echo "This job will test running the compiled code in the next module"
# - npm install http-server -g
# - http-server dist/ &
### This job will not execute if the build_app job fails
needs
:
[
build_app
]
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