Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
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
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
D-PTB
DCC
Development
dcc-js
Commits
7335dc44
Verified
Commit
7335dc44
authored
1 year ago
by
Jan Loewe
Browse files
Options
Downloads
Patches
Plain Diff
ci(test): add eslint and prettier
parent
418df8ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#22309
passed
1 year ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-2
19 additions, 2 deletions
.gitlab-ci.yml
with
19 additions
and
2 deletions
.gitlab-ci.yml
+
19
−
2
View file @
7335dc44
image
:
node:18.15.0
image
:
node:18
stages
:
-
test
# === Caches ===
.yarn-cache
:
&yarn-cache
key
:
yarn-$CI_JOB_IMAGE
paths
:
-
.yarn
# === Proxy ===
# Description: sets up the proxy needed for the runner inside of the PTB. Produces a build.env that is used in the next jobs
proxy
:
...
...
@@ -39,9 +42,10 @@ proxy:
# install deps
-
yarn install --immutable
# === Job: Unit Tests ===
# Description: this job runs the unit tests
test
:
unit_
test
s
:
stage
:
test
needs
:
[
"
proxy"
]
script
:
...
...
@@ -54,3 +58,16 @@ test:
reports
:
junit
:
-
junit.xml
# === Job: ESLint and Prettier ===
# Description: this job runs ESLint and Prettier
lint
:
stage
:
test
needs
:
[
"
proxy"
]
script
:
-
*yarn-install
-
yarn run test:lint
-
yarn run test:prettier
cache
:
-
<<
:
*yarn-cache
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