Skip to content
Snippets Groups Projects
Verified Commit 7335dc44 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

ci(test): add eslint and prettier

parent 418df8ae
No related branches found
No related tags found
No related merge requests found
Pipeline #22309 passed
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_tests:
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment