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
Branches
Tags
Loading
Pipeline #22309 passed
image: node:18.15.0 image: node:18
stages: stages:
- test - test
# === Caches === # === Caches ===
.yarn-cache: &yarn-cache .yarn-cache: &yarn-cache
key: yarn-$CI_JOB_IMAGE key: yarn-$CI_JOB_IMAGE
paths: paths:
- .yarn - .yarn
# === Proxy === # === 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 # 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: proxy:
...@@ -39,9 +42,10 @@ proxy: ...@@ -39,9 +42,10 @@ proxy:
# install deps # install deps
- yarn install --immutable - yarn install --immutable
# === Job: Unit Tests === # === Job: Unit Tests ===
# Description: this job runs the unit tests # Description: this job runs the unit tests
test: unit_tests:
stage: test stage: test
needs: ["proxy"] needs: ["proxy"]
script: script:
...@@ -54,3 +58,16 @@ test: ...@@ -54,3 +58,16 @@ test:
reports: reports:
junit: junit:
- junit.xml - 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.
Please register or to comment